#garima-stripe-account
1 messages · Page 1 of 1 (latest)
Hi, I think you should be able to supply a string value on {{CONNECTED_STRIPE_ACCOUNT_ID}} , no?
if we are giving the hard code value in string in that case it's working fine
but if we are passing through variable it's not working
Please reply where we are doing wrong
I am not sure how is it not working. Can you elaborate? What code are you using and by which part it's errored ?
const stripePromise = loadStripe("pk_test_51L93Vp...............................................................................pe", {
stripeAccount: 'acct_.................................s',
});
this is working fine
let account = 'acct_1----------------------s';
const stripePromise = loadStripe("pk_test_51L93Vp............................................................................................pe", {
stripeAccount: account,
});
this is not working
How is it "not working"? Does it display some error to you?
{
"error": {
"code": "account_invalid",
"doc_url": "https://stripe.com/docs/error-codes/account-invalid",
"message": "The provided key 'pk_test_*********************************************************************************************8OSvpe' does not have access to account '' (or that account does not exist). Application access may have been revoked.",
"type": "invalid_request_error"
}
}
Are you sure it's the same string value? Can you give the errored request id?
403
request id in format of req_xxx
Check from here https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
👋 I am stepping down for the day. If you need further help please ask in the channel