从此处返回的$
对象:
details
// Render the PayPal button into #paypal-button-container
paypal.Buttons({
// Set up the transaction
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '0.01'
}
}]
});
},
// Finalize the transaction
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
// Show a success message to the buyer
alert('Transaction completed by ' + details.payer.name.given_name + '!');
});
}
}).render('#paypal-button-container');
该ID与通知中显示的“交易ID”不同:
https://developer.paypal.com/developer/notifications/
这可能是什么问题?还是在通知中如何将{
"create_time": "2019-07-03T20:25:02Z",
"update_time": "2019-07-03T20:25:02Z",
"id": "2NE12348FF594456W"
}
返回的id
与details
交叉引用?