I have a form to saving customer’s credit card (see image). I need to check some conditions before saving their card.
1/ show error for:
- Wrong cc number
- wrong billing
- not enough funds
2/ just accept if the card brand is “master card”.
- I’ve try with stripe.js but it require creating a payment method first → then I can retrive the data. But I don’t want to do that. I need verify the card before creating a payment method .
Hope for helps