#tevard-idempotency-error

1 messages · Page 1 of 1 (latest)

delicate pilotBOT
buoyant leaf
#

tevard-idempotency-error

#

@wooden owl it's all the parameters in that API request

wooden owl
#

2 short followups:

  1. including metadata?
    {
    "description": "...",
    "metadata": {
    "...": "...",
    },
    "statement_descriptor": "...",
    "currency": "...",
    "customer": "...",
    "source": "...",
    "amount": "..."
    }
  2. If I create a new card from 4242 for each request, I think the source: "card_..." will be different then?
little arrow
#

hey there, stepping in for koopa who needs to step away

#
  1. yes, including metadata
#
  1. yes, you would end up creating many card objects with unique IDs, though they should all have the same fingerprint
wooden owl
#

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).

little arrow
#

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

wooden owl
#

Gotcha. Thanks again!