【发布时间】:2018-08-03 11:56:47
【问题描述】:
在我的网站上使用 Paypal 成功付款后,浏览器只显示警报:
// Execute the payment
onAuthorize: function (data, actions) {
return actions.payment.execute()
.then(function () {
// Show a confirmation message to the buyer
window.alert('Compra realizada con éxito. Recibirá más detalles por email!');
});
}
我现在正在使用沙盒选项,但我知道如何向用户提供有关交易的更多详细信息。
我看到函数中有一个“数据”参数,有交易详情吗?如果是,我如何阅读它们以便稍后向用户展示?
【问题讨论】:
标签: javascript ajax paypal-sandbox