简体   繁体   中英

How to show "Pay with a debit or credit card" button instead of "Checkout as Guest" on PayPal guest payment

I have a project with a PayPal integration. On this, I have enabled the 'guest checkout option' in my PayPal account(US Account) for customers paying on my website. I need to show the "Pay with Debit or Credit Card" button always when a user opens the PayPal login page. But sometimes it showing the "Checkout as Guest" button instead of the "Pay with Debit or Credit Card" button.

How can I show the "Pay with Debit or Credit Card" button always? Does this have any relation with the browser cookie?

You cannot control the behavior of the PayPal page. The behavior presented depends on very many factors--including, for example, the location of the buyer or repeated checkout attempts--and so is case by case. Sometimes the option to check out as a guest will not be available, at all.

If you want to always present a debit or credit card option, you should use Smart Payment Buttons. A simple integration is demoed here: https://developer.paypal.com/demo/checkout/#/pattern/client


If you have a server backend that can do API calls, then you should create two routes, one for 'Set Up Transaction' and one for 'Capture Transaction' documented here -- and pair your two routes with the server approval flow .

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