如何使用Paypal REST API预先填写客户详细信息? [英] How to pre-fill customer details using Paypal REST API?

查看:90
本文介绍了如何使用Paypal REST API预先填写客户详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用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时,您也可以遵循以下说明

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.

例如:

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆