问题描述
我们正在使用Paypal的REST API,并且希望在批准页面上预先填写客户的数据(电子邮件,姓名,地址).
We're using Paypal's REST API and we'd like to pre-fill the customer's data (email, name, address) on the approval's page.
有一个payer_info对象,可以在创建付款时传递给Paypal.但是它不允许指定客户的详细信息-不支持电子邮件字段,其他字段为只读.另外,我没有在API文档中看到关于如何使用REST API实现此功能的任何提及.你知道这是否可能吗?如果不支持,何时知道它会被支持?
There is a payer_info object that can passed to Paypal when the payment is created. But it does not allow specifying customer's details - email field is not supported and others are read-only. Also I don't see any mentions in the API docs on how to achieve this with the REST API. Do you know if it's possible and how? If it's not supported, is it known when it's gonna be supported?
谢谢.
推荐答案
即使在使用PayPal REST API时,您也可以遵循以下说明 https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_xclick_prepopulate_outside 并将这些参数作为GET参数附加在aproval_url的末尾,然后重定向客户.
Even when using PayPal REST API you can follow these instructions https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_xclick_prepopulate_outside and append the params as GET params on the end of the aproval_url before redirect the customer.
例如:
这篇关于如何使用Paypal REST API预先填写客户详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!