在我的网站上使用 Paypal api 付款

Paypal api payment in my site

它可以在用户不通过 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 以便 him/her 批准付款,否则您将无法执行和完成销售。

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

两个选项:Stripe 为 credit/debit 笔交易提供白标 API(2.9% + 30c 交易费)。 SynapsePay 为 ACH 付款提供白标 API(每笔交易 25c)。