简体   繁体   English

集成贝宝信用卡付款时遇到麻烦

[英]trouble integrating paypal credit card payment

I have setup express checkout on a php custom site for payments. 我在php自定义网站上设置了快速结帐付款。 Basically it shows me the classic screen of paypal with the order summary and the "choose a way to pay" options. 基本上,它向我显示了Paypal的经典屏幕,其中包含订单摘要和“选择付款方式”选项。

How do I detect which one the user has clicked on? 如何检测用户单击了哪一个? Paypal option or "pay with a credit card" option, so that I would either do a DoExpressCheckout or a DoDirectPayment NVP API call? Paypal选项或“用信用卡付款”选项,这样我可以执行DoExpressCheckout或DoDirectPayment NVP API调用吗?

I've been using the code from here (Saraan's site) to use the token for paypal. 我一直在使用此处 (Saraan的站点)中的代码将令牌用于Paypal。

If you are using Express Checkout, regardless if the buyer selects to log in with their PayPal account and make the payment, or select the guest checkout and pay with a credit card on PayPal pages you would still use the DoExpressCheckoutPayment API to complete the payment. 如果您使用的是Express Checkout,则无论买方选择使用其PayPal帐户登录并进行付款,还是选择来宾结帐并在PayPal页面上使用信用卡付款,您仍将使用DoExpressCheckoutPayment API来完成付款。 You would not need to do the DoDirectPayment API call. 您无需执行DoDirectPayment API调用。 This call would be used if you were setting up a payment page directly on your site, and did not want the buyer to leave your site to enter in their credit card information. 如果您是直接在网站上设置付款页面,并且不希望买家离开您的网站来输入其信用卡信息,则将使用此呼叫。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM