当我点击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
现在问题是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
时。喜欢这个
当they clicks on 2nd Option
然后second option needs to be opened
时。喜欢这个
Can Anyone tell me how can i achieve this.
Any help will be appreciated.
答案 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