[英]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.我有一个与 PayPal 集成的项目。 On this, I have enabled the 'guest checkout option' in my PayPal account(US Account) for customers paying on my website.为此,我在我的 PayPal 帐户(美国帐户)中为在我的网站上付款的客户启用了“访客结帐选项”。 I need to show the "Pay with Debit or Credit Card" button always when a user opens the PayPal login page.当用户打开 PayPal 登录页面时,我需要始终显示“使用借记卡或信用卡付款”按钮。 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?这与浏览器cookie有关系吗?
You cannot control the behavior of the PayPal page.您无法控制 PayPal 页面的行为。 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这里演示了一个简单的集成: 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 .如果您有一个可以进行 API 调用的服务器后端,那么您应该创建两条路由,一条用于此处记录的“设置事务”,另一条用于此处记录的“捕获事务”——并将两条路由与服务器批准流程配对。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.