#supriya
1 messages · Page 1 of 1 (latest)
Hi there!
yes
Jack Tan is not here, but I'm happy to help!
okay thank you
for doing the payment we are using crete customer,create payment method ,attach payment method ,create stripe payment intent and finally confirm payment
but what happend here we are unable to validate the expiry year ,expiry month and CVV
able to validate the cardnumber
How do you create the Payment Method? With PaymentIntent or SetupIntent or something else?
attch the payment with payment intent
Can you share the Payment Method ID (pm_xxx)?
pm_1NKg7LBFBCpItuQHYqwcUvwP
So you created this Payment Method with the payment_method endpoint: https://dashboard.stripe.com/test/logs/req_CKC1DdFLrPPkhO
In this case Stripe will validate the payment method once it is attached to a customer: https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge
yes correct
when ever we are saving the card only i am using the create customer
other wise i am not using customer so at that time how i need to validate the card can you help me on that
I told you:
- Either attach the payment method to the customer
- Or better: use a SetupIntent
okay
for those two solution can you send me the API request
i mean post man request or curl
can you send me the stripe postman collection URL
To attach a payment method to a customer: https://stripe.com/docs/api/payment_methods/attach. But we don't recommend doing this, you should use a SetupIntent instead.
And for SetupIntent you should read this: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements