Paypal CREATE type

*爱你&永不变心* 提交于 2019-12-10 11:38:56

问题


Here's an extended example flow that should work in the live environment:

  • Send Pay request with actionType=CREATE
  • Send SetPaymentOptions request using the returned payKey
  • Redirect the user to approve the payment
  • Receive IPN
  • Send PaymentDetails request using the returned payKey
  • Send GetPaymentOptions request using the returned payKey
  • Send ExecutePayment request using the returned payKey

Everything works fine, till the last step. Somehow Payment is set to COMPLETED state as soon as the user approves the payment.

What am I doing wrong? I have used different card to accept the payment, and no paypal account so that I wouldn't be treated as the same user. Here are the details after user accepts the payment:

[status] => COMPLETED
[trackingId] => 
[payKey] => AP-XXXXXXXXX
[actionType] => CREATE
[feesPayer] => EACHRECEIVER

来源:https://stackoverflow.com/questions/14069785/paypal-create-type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!