Paypal integration - GetExpressCheckout

家住魔仙堡 提交于 2019-12-11 16:19:53

问题


I'm working on PayPal integration (Express Checkout) using SOAP API. After DoExpressCheckout call I call GetExpressCheckoutDetails. In docs I found that the checkout status can be one of the following

  • PaymentActionNotInitiated
  • PaymentActionFailed
  • PaymentActionInProgress
  • PaymentCompleted

But docs do not actually say what does each of them mean. I understand all but PaymentActionInProgress - how do I handle it? Does it mean that I'll receive IPN call from PayPal when it's completed? Also, can I simulate this response for testing?


回答1:


Hello Alex Buynyachenko,

A value of PaymentActionNotInitiated occurs when you submit a GetExpressCheckoutDetails API call before the buyer logs into a PayPal account or when they log into their account, return to your website but have not completed the payment yet.

PaymentActionFailed occurs when you've tried to complete the payment but it failed for some reason. The error response information returned would have details on the failure.

PaymentActionInProgress this is returned when you submit the DoExpressCheckoutPayment API call but haven't received a response yet - you shouldn't encounter that one often.

PaymentCompleted is returned after you get a successful DoExpressCheckoutPayment response. I just tested submitting an Authorization to see if I would get "InProgress" or "Completed" and I received a "Completed" value back.



来源:https://stackoverflow.com/questions/16630463/paypal-integration-getexpresscheckout

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