#garima-stripe-account

1 messages · Page 1 of 1 (latest)

open night
#

Hi, I think you should be able to supply a string value on {{CONNECTED_STRIPE_ACCOUNT_ID}} , no?

native breach
#

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

open night
#

I am not sure how is it not working. Can you elaborate? What code are you using and by which part it's errored ?

native breach
#

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

open night
#

How is it "not working"? Does it display some error to you?

native breach
#

{
"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"
}
}

Learn more about error codes and how to resolve them.

open night
#

Are you sure it's the same string value? Can you give the errored request id?

native breach
#

403

open night
#

request id in format of req_xxx

open night
#

👋 I am stepping down for the day. If you need further help please ask in the channel