关于 paypal 快速结账 api

发布于 2024-08-10 20:27:20 字数 650 浏览 1 评论 0原文

在这张图中,有3个主要步骤:SetExpressCheckoutGetExpressCheckoutDetailsDoExpressCheckoutDetails,我现在确定SetExpressCheckout是要自己调用,GetExpressCheckoutDetailsDoExpressCheckoutDetails呢,是paypal调用的还是我自己调用的?

我认为该 API 是供非 Paypal 调用的,但问题是在调用 SetExpressCheckout 后它似乎被重定向到 Paypal。 替代文本
(来源:paypal.com< /a>)

In this picture,there are 3 main steps:SetExpressCheckout,GetExpressCheckoutDetails and DoExpressCheckoutDetails,I'm now sure SetExpressCheckout is to be called by myself,what about GetExpressCheckoutDetails and DoExpressCheckoutDetails,is it called by paypal or by myself?

The api is provided to be called by non-paypal I think,but the problem is seems it's redirected to paypal after calling SetExpressCheckout.
alt text
(source: paypal.com)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落叶缤纷 2024-08-17 20:27:20

是的,您应该是调用这些 API 的人。调用 SetExpressCheckout 后,您将收到一个代表您正在执行的结帐的令牌。您需要使用该令牌并将用户重定向到 Paypal 以批准付款。他们批准后,Paypal 将重定向回您的网站,然后您可以调用 GetExpressCheckoutDetails 和/或 DoExpressCheckoutPayment。 GetExpressCheckoutDetails 调用对于获取送货地址等信息非常有用,因为买家可以将这些信息设置为审批流程的一部分。获得所需的所有信息后,买家已批准付款并且您已准备好收款,然后致电 DoExpressCheckoutPayment 即可收款。

请参阅ExpressCheckout 文档了解简单集成的示例。

Yes, you are expected to be the one calling these APIs. After you call SetExpressCheckout, you'll get a token back that represents the checkout you're performing. You'll need to use that token and redirect the user to Paypal to approve the payment. After they approve it, Paypal will redirect back to your site and then you can call GetExpressCheckoutDetails and/or DoExpressCheckoutPayment. The GetExpressCheckoutDetails call is useful for getting things like shipping address, etc, since the buyer can set that stuff as part of the approval flow. Once you have all the info you need, the buyer has approved the payment and you're ready to get paid, then call DoExpressCheckoutPayment to get your money.

See the ExpressCheckout docs for an example of a simple integration.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文