简体   繁体   中英

Custom Paypal credit card payment form required fields for payment api

I'm integrating a custom paypal credit card payment form in my project (Angular2 + Node.js).

Refer:

(1.) https://developer.paypal.com/docs/integration/direct/payments/credit-card-payments/#create-credit-card-payment

(2.) http://code.runnable.com/UXgyne_v2oZyAAC-/pay-with-a-credit-card-using-paypal-api-for-node-js


My question is do we really need to add "first_name" and "last_name" field in the form. Instead I just want to add one field for the name of card holder.

Please sugggest the best solution for my case. Thankyou!

Well actually you can do that. The name field are not compulsory.

您可以为“持卡人姓名”添加一个字段,然后在代码中将其拆分,以便分别填写名字和姓氏。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM