在我的网站上PayPal API 付款



它可以在没有用户通过PayPal页面的情况下PayPal付款??

我不希望我的用户被定向到PayPal页面,我想成为将所有信息发送给PayPal的人,它被处理并给我一个答案,但用户从未离开过我的网站?

这是可能的??

出于安全原因,用户只能通过网站直接PayPal完成交易,也许您可以使用框架在您的网站中显示PayPal认证的页面。

编辑:从PayPal REST API:https://developer.paypal.com/webapps/developer/docs/integration/web/accept-paypal-payment/

If the call is successful, PayPal returns a confirmation of the transaction with the state set to created.
[...]
Get payment approval
Please note the HATEOAS links in the example above. Direct the user to the approval_url on the PayPal site, so that the user can approve the payment. The user must approve the payment before you can execute and complete the sale.

因此,您必须将用户引导到approval_url才能让他/她批准付款,否则您将无法执行和完成销售。

如果您想控制用户体验(没有重定向),可以使用白标替代PayPal。

两种选择:Stripe 为信用卡/借记卡交易提供白标 API(2.9% + 30c 交易费)。SynapsePay为ACH支付提供白标API(每笔交易25c)。

最新更新