贝宝REST API和配置直接付款页面 [英] Paypal REST api and configuring direct payment page
本文介绍了贝宝REST API和配置直接付款页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用paypal NVP API,我们可以使用SetExpressCheckout
为生成的paypal结帐页面设置一些选项.有没有办法使用新的REST API执行以下操作?
With the paypal NVP api, we were able to set some options for the generated paypal checkout page using SetExpressCheckout
. Is there a way to do the following with the new REST api?
-
NOSHIPPING
告诉贝宝我不需要送货地址. -
LOCALECODE
设置用户语言的网关. -
HDRIMG
将页面标题更改为徽标. -
EMAIL
以在网关中预填充电子邮件. 注意:我尝试使用$payerInfo->setEmail()
,但显然此方法仅适用于credit_card
而不适用于paypal
请求. -
SOLUTIONTYPE
默认设置帐单信息. -
LANDINGPAGE
设置登录页面.
NOSHIPPING
to tell paypal that I don't need a shipping address.LOCALECODE
to set the gateway in the user's language.HDRIMG
to change the title of the page to a logo.EMAIL
to pre-populate the email in the gateway. NOTE: I've tried using$payerInfo->setEmail()
but apparently this method is only forcredit_card
and notpaypal
requests.SOLUTIONTYPE
to set the billing info by default.LANDINGPAGE
to set the landing page.
我在Paypal开发人员REST api文档中找不到它.
I cannot find it in the paypal developer REST api docs.
推荐答案
很遗憾,目前不在.与过载API调用相比,我们正在尝试实现一种更好的机制来配置付款体验.在此之前,如果您确实需要这些,请使用经典的ExpressCheckout API.
Unfortunately not at this time. We are trying to implement a better mechanism to configure the payment experience than overloading the API calls. Until then please use the classic ExpressCheckout API if these are something that you really need.
这篇关于贝宝REST API和配置直接付款页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文