1
后我的角度4个project.I要打API调用支付宝付款,获得成功之后,但actions.payment.execute().then
不允许访问任何外部对象的API调用。PayPal支付:让我使用PayPal支付付款成功
我可以得到任何成功的事件吗? PayPal上BUTTOM
document.querySelector('#paypal-button').dispatchEvent(new CustomEvent('onPaymentCompleted', { detail: {payment: JSON.stringify(payment)},bubbles: true }));
:
onAuthorize: function (data, actions) {
return actions.payment.execute().then(function() {
//want to make an api call
});
}
}, '#paypal-button-container');