I'm attempting to get a "buyer" user to purchase items listed by the "seller" user.
My seller users have gone through the OAuth flow and is connected to the platform, it's Stripe Account ID is stored in my "Users" collection.
My buyer users have individually created a stripe customer and I have stored the customer ID locally in my "Users" collection.
The problem is: whenever I create a charge, passing in the customer parameter, I receive the error "No such customer"
However it's clear that if I call stripe.customers.recieve I can see my users customer data and I can also see it in the Stripe Dashboard.
Additionally, I have called
stripe.tokens.create, then passing in
token.id as the source when creating the charge as stated
here.
I hope someone can tell me what is going on here.
Thanks