2

A www form provides my cgi script with a full name for the credit card information. The PayPal Rest API wants a first_name and last_name. If there are more than two 'words' in the full name, then what is the way to submit the information? I want to avoid declined cc payments.

Say, given

full_name="Mr. I M Testy".

Should I submit

first_name="Mr. I M", last_name="Testy"

Or what?

Where is the guidance on the Paypal rest documentation?

4

2 回答 2

2

在沙盒中似乎效果最好的解决方案是将持卡人姓名的单词拆分为姓氏和其他所有单词。

前任。“John Jacob Jingleheimer Schmidt”将被拆分为

姓氏:“施密特”

first_name: '约翰·雅各布·金格海默'

这就是我提交它的方式。如果持卡人的名字是姓氏,而我根本没有提交 first_name 参数。

于 2015-06-06T18:19:57.237 回答
0

您可以将它们添加到您正在执行的名字的末尾或姓氏之前。没有通过 REST API 强制执行的约定。因此,只要您在处理名称的方式上保持一致,API 就不会妨碍您。

于 2014-06-03T15:33:24.287 回答