#harinth-invoice-pi
1 messages · Page 1 of 1 (latest)
Hey. Each Invoice will have a unique Payment Intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Each payment attempt won't create a new Payment Intent, no
We need to use customer ID and payment method id for that right?
For what?
To prevent duplicate payment method
Everytime user gives card details and not saving it for the future in the db
How can I check whether a payment method exist with the given card information
I mean in the second time
Well, it's difficult as we don't return the full card data
Same card created 2 payment method
You'd check the fingerprint on the object: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-fingerprint
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yep, you can have multiple Payment Method objects using the same card details
But is that a good practice?
Suppose I have only 1 card and making payment with that 100 times. This will create 100 payment method with same fingerprint
Why not just re-use the original Payment Method then?
Because in the payment form, no option to select payment method. It's just a form where user enters card information each time
Yeah, you'd need to build a UI the display previously saved payment methods
Ok. Thank you