我已经实现了客户端结帐作为演示这里。它的工作良好,同时测试与沙箱帐户。但我担心的是,我们如何才能核实付款是否真的是从服务器端支付的呢?如果用户执行了订单号“X”的付款,我想确保付款是成功的。我注意到了我所理解的由paypal生成的事务Id,只有在支付完成之后,我们才能在支付执行回调的参数中接收到该Id:
actions.payment.execute().then(function (payment) { // where payment.transactions[0].related_resources[0].sale.id is some value say 'xxx' }
我正在将PayPal集成到我的web应用程序中。在这里,我想做完整的结账,process.It有直接付款和快速结账。
In Express checkout we need only PayPal account like
1)Clicking Check out with PayPal
2) Logs into PayPal to authenticate
3)Reviews the transaction on PayPal
4)Confirms the order and pays from your site
5)Receives an order confirmation
I
问题:我正在试图弄清楚如何检查邮政编码(在paypal智能按钮结帐期间输入)是否满足特定要求。我有createOrder和onApprove对象属性,我想在捕获付款之前检查邮政编码,这样我就可以拒绝付款,并取消订单。 paypal.Buttons(
{
createOrder: function(data, actions) {
// This function sets up the details of the transaction, including the amount and line item details.