#tevard-idempotency-error
1 messages · Page 1 of 1 (latest)
2 short followups:
- including metadata?
{
"description": "...",
"metadata": {
"...": "...",
},
"statement_descriptor": "...",
"currency": "...",
"customer": "...",
"source": "...",
"amount": "..."
} - If I create a new card from 4242 for each request, I think the source: "card_..." will be different then?
hey there, stepping in for koopa who needs to step away
- yes, including metadata
- yes, you would end up creating many card objects with unique IDs, though they should all have the same
fingerprint
Thanks!
Is there any way to get Stripe to recognize that a unique card has already been added to the Customer? I seem to be able to add multiple duplicate copies of the same card to a Customer. (I am using the Ruby library).
There's no automatic handling for this, but you can achieve it with your own integration by examining the fingerprint as needed
ie, check if the customer already has a card with the same fingerprint attached, and take whatever action you deem appropriate
Gotcha. Thanks again!