#lozzy.

1 messages · Page 1 of 1 (latest)

agile lavaBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

  • lozzy., 1 day ago, 47 messages
empty sable
#

Hi there!

vernal zodiac
#

Yes but I have an issue with google pay

empty sable
#

What's the issue exactly?

vernal zodiac
#

Basically, We have a platform account and under that we have a test aconnected account. Google pay works fine on that connected account. We use the connected account's publishable key for Google to generate a token and we use the restricted key to perform a google pay transaction in stripe. This flow works well.... However, when we try to use the platform account to make a google pay payment it does not work. Same principle, we use the platform's publishable key for Google JS and the secret key when making a request to Stripe..... We get the error saying 'invalid token id'.

#

I have checked the dashboard, the publishable key and secret key are both correct. I would assume that they should link up fine.

empty sable
vernal zodiac
#

req_I0g3Ucv7t62FZs

empty sable
#

The token you are trying to use belongs to a different account, so it's expected not to work.

#

The token is on acct_1FwxILLCiYIRXZpw

#

But the request you shared is on acct_1GB1enFmMMzcMzw9

vernal zodiac
#

Yes I have got acct_1GB1enFmMMzcMzw9 written down in association with the platform account

#

Where can I find the correcvt account id?

empty sable
#

I'm not sure I understand the question.

vernal zodiac
#

where do I find the account id?

#

Because on my company keepass the second account id is listed under out platform account which I assume incorrect

empty sable
vernal zodiac
#

I did a search and did not find it. The google transaction works thanks to the account id you provided. But I do not see this account id anywhere in the backend

empty sable
vernal zodiac
#

Okay so with the platform account I should be using the accountId acct_1FwxILLCiYIRXZpw instead of acct_1GB1enFmMMzcMzw9?

empty sable
#

If you want to use tok_1OI5qVLCiYIRXZpwr9xS2TrV, then you need to make an API request by platform account acct_1FwxILLCiYIRXZpw on the connected account acct_1GB1enFmMMzcMzw9

vernal zodiac
#

This part makes sense: 'If you want to use tok_1OI5qVLCiYIRXZpwr9xS2TrV, then you need to make an API request by platform account acct_1FwxILLCiYIRXZpw'

#

'on the connected account acct_1GB1enFmMMzcMzw9' This part is whats confusing me.

empty sable
#

You are using the Stripe-Account header to make your requests: https://stripe.com/docs/connect/authentication
Which means the platform account is making the API call, but then the Stripe-Account header is set to the connected account ID. And all objects involved in the API call need to be on the connected account.

vernal zodiac
#

You are using the Stripe-Account header to make your requests - This is correct, at the moment acct_1FwxILLCiYIRXZpw is set as the Stripe-Account.

#

You mentioned that the Stripe-Account header is then changed to acct_1GB1enFmMMzcMzw9? How is this done?

#

By default?

empty sable
#

You are making these API request, so you have full control on what account you use and why.

vernal zodiac
empty sable
#

No, it's set in your code

vernal zodiac
#

Interesting. I am certain that we are not changing anything, once the header is set it is not changed.

empty sable
#

I can't really help with this part, since I don't know your code. You'll need to debug this on your end.

vernal zodiac
#

We are integrating with Google pay directly so we are not using nay checkout element buttons.

#

The connected account id acct_1GB1enFmMMzcMzw9... could you tell me the publishable key for it or the name of the account so I can search up from my backend?

empty sable
vernal zodiac
#

okay no problem thank you very much for all your help

empty sable
#

Happy to help 🙂