Hey there,
There's unfortunately no way to merge or copy data from one customer
to another in Stripe like their card details or the charges history if
you already charged them in the past. You'd need to make sure that
from now on you don't duplicate customers so that you always have all
the cards and charges history in the same place. On Stripe's end we
don't ensure unicity of customer by cards or email addresses and
that's something you'd need to do on your end first.
To ensure card unicity, you should look at the `fingerprint` property
on the Token [1] or Card [2] object which uniquely identifies a
specific card number in your account. You'd store this along with the
expiration date (not used when calculating the fingerprint) so that
whenever you get a new card token you can try to match that card to an
existing customer in your account.
I hope this helps but please do not hesitate to get back to me if you
need more details.
All the best,
Remi
[1]
https://stripe.com/docs/api#token_object
[2]
https://stripe.com/docs/api#card_object
> --
> You received this message because you are subscribed to the Google Groups
> "Stripe API Discussion" group.
> To post to this group, send email to
api-d...@lists.stripe.com.
> Visit this group at
>
http://groups.google.com/a/lists.stripe.com/group/api-discuss/.
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
api-discuss...@lists.stripe.com.