#Gumehara
1 messages · Page 1 of 1 (latest)
What's the Q?
I am trying to do a charge with a payment intent on a connected account but when i try to confirm it says : Can only apply an application_fee when the request is made on behalf of another account (using an OAuth key, the Stripe-Account header, or the destination parameter).
I Create the payment intent first
this.stripe = Stripe('test_key', {
stripeAccount: 'account_id'
});
const elements = this.stripe.elements({
clientSecret: stripeTokenResponse,
beta: 'on',
});
Instantiate the js library
with the client_id and client_secret
Can you share the req_xxx ID?
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.
req_PxoxGD6DAOUHm6
looks like you're doing something wrong like using the secret key of the connected account or setting stripe_account to your own account ID or similiar
you need to use the secret key of your platform account, and set stripe_account to the ID of a connected account
when you add logs, what is the value of $company->stripeId?
acct_1LxU1DLTMcD6M5l6
this.stripe = Stripe('test_key', {
stripeAccount: 'account_id'
});
is "test key" the publishable key of your platform? And is account_idacct_1LxU1DLTMcD6M5l6?
yes and yes
I don't think so
because it looks to me like 'test_key' is the publishable key of the connected account acct_1LxU1DLTMcD6M5l6, that's what is shown by the req_xx you posted
that request is using a key pk_test_***Keo84N belongs to acct_1LxU1DLTMcD6M5l6 , which is incorrect when using Direct Charges like this
test_key is my platform account is it not ?
it is not, in that req_xxx you posted it is using a key pk_test_***Keo84N which belongs to acct_1LxU1DLTMcD6M5l6
it should be your platform's publishable key instead
Ok where can i find that
same place you find the platform's secret key, https://dashboard.stripe.com/test/apikeys when logged into the platform account S____ Software Ltd