贝宝集成-GetExpressCheckout [英] Paypal integration - GetExpressCheckout

查看:81
本文介绍了贝宝集成-GetExpressCheckout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SOAP API进行PayPal集成(快速结帐).在DoExpressCheckout调用之后,我调用GetExpressCheckoutDetails.在docs中,我发现结帐状态可以是以下其中一种

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
  • 付款完成

但是文档并没有真正说出它们各自的含义.我了解除PaymentActionInProgress之外的所有内容-如何处理?这是否意味着我将在完成后收到来自PayPal的IPN呼叫?另外,我可以模拟此响应进行测试吗?

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?

推荐答案

你好Alex Buynyachenko,

Hello Alex Buynyachenko,

当您在买家登录PayPal帐户之前提交GetExpressCheckoutDetails API调用,或者当他们登录其帐户但返回到您的网站但尚未完成付款时,会发生PaymentActionNotInitiated值.

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在您尝试完成付款但由于某种原因而失败时发生.返回的错误响应信息将包含有关失败的详细信息.

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,当您提交DoExpressCheckoutPayment API调用但尚未收到响应时,将返回此值-您不应该经常遇到该响应.

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.我刚刚测试过提交授权,以查看是否将获得正在进行中"或已完成",并且还收到了已完成"值.

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.

这篇关于贝宝集成-GetExpressCheckout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆