根据特定链接打开paypal选项

时间:2014-02-15 18:48:02

标签: php magento paypal paypal-sandbox

当我点击Paypal Express Checkout时,它会将我发送到paypal website where i get 2 options

1)Pay with my Paypal Account

2)Pay with a Debit or Credit Card or Bill me Later

enter image description here

现在问题是I want to add 2 Options in my checkout

1)Pay with paypal

2)Pay with Credit or Debit Card

当用户点击Pay with paypal然后点击first Paypal options need to open时。喜欢这个

enter image description here

they clicks on 2nd Option然后second option needs to be opened时。喜欢这个

enter image description here

Can Anyone tell me how can i achieve this. Any help will be appreciated.

1 个答案:

答案 0 :(得分:1)

您可以在执行SetExpressCheckout API方法时更改目标网页。

如果查看LANDINGPAGE字段的API参考:

  

要显示的PayPal页面类型。它是以下值之一:

     

结算 - 非PayPal帐户

     

登录 - PayPal帐户登录

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

因此,您必须在结帐时创建2个选项,第一个选项(Pay with paypal)使用LANDINGPAGE=Login执行SetExpressCheckout,第二个选项必须使用LANDINGPAGE=Billing