2015-03-13 91 views
0

它可以支付paypal没有用户通过PayPal页面?在我的网站的支付宝API支付

我不希望我的用户被引导到paypal页面,我想成为一个将所有信息发送到paypal,它被处理并给我一个答案,但用户永远不会离开我的网站?

这是可能的?

+0

查看[无缝结帐](https://developer.paypal.com/docs/integration/direct/identity/seamless-checkout/)流程。心连心。 – EdSF 2015-03-14 02:30:16

回答

0

出于安全原因,用户只能通过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为了让他/她批准支付,也可以不执行,完成销售。

+0

paypal api休息不让我做? – 2015-03-13 20:34:28

0

如果你想控制你的用户体验(没有重定向),有贝宝的白色标签替代品。

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