#Yure

1 messages · Page 1 of 1 (latest)

waxen zincBOT
peak edge
#

Let me answer one by one

peak tendon
#

sure, no problem

peak edge
#
  1. I don't see the error in screenshot 2, can you share with me the request ID
peak tendon
peak tendon
peak tendon
peak edge
#

Can you send me the request IDs, the one that works and the one doesn't?

peak tendon
#

give me a couple of minutes please

#

I tried logging in but it seems like Stripe has some issues at the moment, let me ask you another question, that doesn't require req parameters

peak edge
#

Yes, the Dashboard is not accessible at this moment, we are working on it.

peak tendon
#

Do I understand it correctly that in order to add Stripe-Header I need to use this line of code as a second parameter?

{
...line_items,
...payment_intent_data,
// other parameters
},
{ stripeAccount: accountId } // Stripe-Header?
)```
#

accountId is the Connected Account id

peak edge
#

Yes, that's right.

peak tendon
#

The problem then is that I get this error: The 'payment_intent_data[transfer_data][destination]' param cannot be set to your own account.

"request-id":"req_lfQk4vZSzlenkk","stripe-account":"acct_1LxPURPP1WbC8gyf","stripe-version":"2019-05-16"

peak edge
#

Wait, why are you setting destination to your own account?

#

the destination should be one of your express/custom connected account

peak tendon
#

the destination is the Connected account

#
    destination: accountId,
    },```
#

this is the same as { stripeAccount: accountId } // Stripe-Header?

peak edge
#

Are you still using the connected account's secret key?

peak tendon
#

no, this is the platform's key

#

sorry, actually this might be the conected account's key

peak edge
#

And acct_1LxPURPP1WbC8gyf is your account (e.g., platform ) or connected account

peak tendon
#

let me double check

#

double checked - acct_1LxPURPP1WbC8gyf is connected account

#

and it happens if I use platform's key

#

could it be related to Stripe having problems at the moment?

peak edge
#

Ah I know the problem

#

You are using destination charge, the charge is to be created in platform, and later transferred to connected account. In this case you don't need to specify the stripe-account header

peak tendon
#

I would like to use Direct charge, so that the charge is created on the COnnected Account

#

how could I do that with Checkout Session Object?

#

I was told by the support a couple of days ago it uses Direct Charge

#

sorry, need to afk for 10 minutes, hope it's not a problem

peak edge
#

For direct charge, you don't need to specify a transfer_data in your request

peak tendon
#

I am back sorry

#

this is what I get if I remove transfer_data

#

could it be caused by Stripe-Header?

peak edge
#

Send me the request ID

peak tendon
#

could you work with payment Id pi_3LxQpsPP1WbC8gyf0VATIxHq? I cannot find request id

peak edge
#

Sure

peak tendon
#

here you go pi_3LxQpsPP1WbC8gyf0VATIxHq

peak edge
#

I don't see an error and I'm able to open this checkout page

peak tendon
#

do you know what could cause an error on my side?

peak edge
#

Are you opening the Checkout URL to open directly or you are using the frontend stripe.redirectToCheckout to open the checkout session?

peak tendon
#

I use stripe.redirectToCheckout

white sky
#

Hey! Taking over for my colleague. Let me catch up.

peak tendon
#

Hey, sure, no problem

#

thanks

white sky
peak tendon
#

sorry, let me get back to you in 10 minutes

#

sorry, I am back

#

yes, what I get is this error

#

but Jack Tan said he is able to view the session

#

hm, I just copied the link from the logs and it worked for me in a new tab but the initial tab (redirected to with stripe.redirectToCheckout) is showing the error still even if I reload

white sky
#

You are using the publicKey of what account in your frontend ?

peak tendon
#

weird, it is supposed to be the public key of the platform but in the Developer API keys page it shows different public key
let me try to use the one from the Stripe instead

#

oh, I am sorry, looked at the wrong settings file

#

the public key is from the platform indeed

#

the exact same one

white sky
peak tendon
#

no, this is the Connected Account, I use the public key of the Platform that the Connected Account is connected to

#

I suppose I need the public key of the connected account now, don't I?

white sky
#

Yes

peak tendon
#

could you please help me find how I could fetch the public key from the connected account?

white sky
peak tendon
#

and the pk_test_... in this example if my (platform's) public key and not connected account's ?

white sky
#

your platform account

peak tendon
#

got it, thank you, let me come back to you in a couple of minutes

#

yay, it worked !

#

thank you for the help on this one

#

could I ask you one more question?

white sky
#

Yeah with pleasure, what is your question ?

peak tendon
#

great, thank you!
how could I fetch Tax Ids on Connected Accounts? is it possible? I am looking for something that could help sending VAT invoices to Connected Users for their sales

#

after the sale* (using Checkout Session flow)

white sky
peak tendon
#

got it, thank you for the help! you've been very helpful

#

no more questions from my side