How to add custom fields to popup form of Stripe Checkout

后端 未结 3 1516
长发绾君心
长发绾君心 2021-02-18 23:32

How can i add custom fields to Stripe Checkout form such as First Name, Last Name and maybe even a checkbox with a custom button? So far i\'ve come up with this;



        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 00:14

    There is no way to tweak Stripe Checkout unfortunately to add a custom field or a checkbox. The solution here is to use Custom Checkout and add those extra fields to your own form. You would for example collect the customer's name and ask him to accept your own Terms of Service and only allow them to click on the Pay button once they do.

    Then, once the customer fills Checkout with their card details and Stripe sends you back the token you would send it to your server along with the extra details you collected on your end.

提交回复
热议问题