#codelogix-payment-method-id
1 messages ยท Page 1 of 1 (latest)
Hello
If a PaymentMethod is detached from a Customer then it is consumed and cannot be re-used
Right...but if the user uses the same card for a future transaction, does that card get a new Stripe::PaymentMethod.id generated?
Not sure what you mean? You get a new ID when you collect a new PaymentMethod.
A PaymentMethod's ID is never changed.
correct...If I use the same card twice in two separate transactions, does a new Stripe::PaymentMethod get created on Stripe's end?
That all depends on your integration.
Are you creating a new PaymentMethod each time?
What does "use the same card twice in two separate transactions" mean?
Mostly no, this shouldn't happen
But it can if you are creating a new PaymentMethod
We are using the new Stripe Elements integration...so that new Stripe Elements UI creates a payment method each time for each PaymentIntent that is created.
codelogix-payment-method-id
so if we create two transactions with the same card, would Stripe automatically generate two unique Stripe::PaymentMethod records, even if the card is the same?
sorry if I'm not explaining this well
Hi there ๐ jumping in as my teammate needs to step away soon. We will create a new Payment Method every time we receive a request to create one, we do not do any sort of deduplication automatically for Payment Methods.
If you want to check whether two Payment Methods were created for the same card, you would compare their card.fingerprint values:
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.
got it. that's what I needed to know. Thank you!
Any time!