简体   繁体   中英

trouble integrating paypal credit card payment

I have setup express checkout on a php custom site for payments. Basically it shows me the classic screen of paypal with the order summary and the "choose a way to pay" options.

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?

I've been using the code from here (Saraan's site) to use the token for 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. You would not need to do the DoDirectPayment API call. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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