【发布时间】:2018-04-20 12:35:31
【问题描述】:
我正在通过 checkout.js (https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/client-side-REST-integration/) 使用“客户端 REST 集成”
一旦授权并且paypal窗口关闭,有没有办法返回客户的信息(姓名+电子邮件地址)?
也许在下面的某个地方?
onAuthorize: function(data, actions) {
// Make a call to the REST api to execute the payment
return actions.payment.execute().then(function() {
window.alert('Payment Complete!');
});
谢谢
【问题讨论】:
标签: rest paypal paypal-rest-sdk paypal-buttons