简体   繁体   中英

Stripe Custom Payment Form Implementation

I am trying to implement payment module in my website using stripe gateway. But I did not use the build-in checkout form [With Elements (Stripe.js v3)] that stripe provides where stripe does all validation for us. Instead, I am trying to create a custom payment form. I have shared my code below.

Can anyone help me in validating the payment form I have created (Validation should be the same as what stripe does in build-in checkout form) and explain this also: https://stripe.com/docs/checkout#integration-custom

With stripe.js v3 , we can customize payment form and its validation?

I like to validate name filed, postalcode field, email and card number and its corresponding CVV with client side code(js).

I have Also Customise stripe elements. I think you should follow This Stripe Elements Doc For customize it.

It is also provide code of customised form in repositories.

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