#navin_sharma
1 messages · Page 1 of 1 (latest)
hi! do you have more context like the request ID req_xxx from the error itself, and what overall you are trying to do in your code?
REQ_ID====>
req_xDFLd5e473Pcnm
i've a stackoverflow link can i share here
well the problem is you are passing the ID of this customer cus_NuUILWn7H1b2pB, and that customer does not exist on the connected account(the stripeAccount you pass), it exists on your platform.
that's totally expected. One solution would be to create that Customer object on the connected account , by passing stripeAccount on the call to stripe.customers.create() as well.
it was already replied to and you were given the same answer I just gave you : https://stackoverflow.com/a/76261222/9769731
yes im using the same
const customer = await stripe.customers.create({
name: name,
email: email,
phone: phone,
});
const stripe = Stripe(CLIENT_SECRET);
my question is here key should be either payment accounts or connected account ??
it's always your account
you always use the API keys of your own platform account.
you can use stripeAccount as an option to run an API call on another account, as was explained in the answer.
GOT IT
But my use case bit different, ive inegrated for crowdfunding platform here campaigns admin or owner are connected account and the person who came to donate are customers..
But when we create customer on Payment account . we are getting customer not found error.
yes
If we create on connected account we can't make connected account keys dynamic
we can't make connected account keys dynamic
what does that mean?
Can you guys help me with this confusion Pls
We have multiple connected accounts to create stripe instance we have to pass KEYS for it ryt
we dont have any endpoint to get connected account details with keys
you never use the keys of a connected account, never.
you always use the keys of your platform account, and you can use stripeAccount as an option to run an API call on another account.
YES as u said when i run create.customers passing connected as stripeAccount from frontend it will not validate it
message
:
"Invalid API Key provided: undefined"
type
:
"invalid_request_error"
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.