简体   繁体   English

将用户直接转发到PayPal上的信用卡处理页面

[英]Forwarding a user directly to credit card processing page on PayPal

Is it possible to forward a user to PayPal (no account/non member page) during a checkout process? 是否可以在结账过程中将用户转发到PayPal(无帐户/非会员页面)? For instance, when I forward any user to PayPal, the user sees a checkout screen where PayPal asks for the PayPal account. 例如,当我将任何用户转发给PayPal时,用户会看到PayPal要求PayPal帐户的结帐屏幕。 At the bottom of the login options, there is an option to pay directly by credit card for new users. 在登录选项的底部,有一个选项可以直接通过信用卡为新用户付款。 I would like to be able forward the user to that option from my php code by using a variable. 我希望能够通过使用变量从我的PHP代码转发用户到该选项。 Maybe I can use a variable in my php code after cmd in the following code: 也许我可以在以下代码中的cmd之后在我的php代码中使用变量:

$sActionURL = 'https://www.paypal.com/cgi-bin/webscr';
$aFormData = array(
            'cmd' => '_xclick-subscriptions',
            'lc' => $locale 
        );

I am not sure whether PayPal allows this, but I already know that my user does not have a PayPal account. 我不确定PayPal是否允许这样做,但我已经知道我的用户没有PayPal帐户。 So it would be better to forward the user to that page. 因此,最好将用户转发到该页面。 Thank you. 谢谢。

If you are using PayPal Express Checkout, you can set LANDINGPAGE parameter: 如果您使用的是PayPal Express Checkout,则可以设置LANDINGPAGE参数:

https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/ https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/

(Optional) Type of PayPal page to display. (可选)要显示的PayPal页面的类型。 It is one of the following values: 它是以下值之一:

 Billing – Non-PayPal account Login – PayPal account login 

Website Payments Standard doesn't support it. 网站付款标准不支持它。

遗憾的是,这不可能,Paypal不允许通过他们的API完成这项工作,你拥有他们的帐户是他们业务的核心所以他们显然不会让你绕过他们试图束缚你(是的我是不是Paypal的粉丝)

I achieved this by not supplying the customers email address to the paypal payment page. 我通过不向paypal支付页面提供客户电子邮件地址来实现这一目标。 If you don't supply an email address it doesn't auto fill the login form and displays the credit/debit card payment form. 如果您不提供电子邮件地址,则不会自动填写登录表单并显示信用卡/借记卡付款表单。

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

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