#lozzy.
1 messages · Page 1 of 1 (latest)
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
Yes but I have an issue with google pay
What's the issue exactly?
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.
Can you share the request ID (req_xxx)? You can find it here https://dashboard.stripe.com/test/logs
req_I0g3Ucv7t62FZs
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
Yes I have got acct_1GB1enFmMMzcMzw9 written down in association with the platform account
Where can I find the correcvt account id?
I'm not sure I understand the question.
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
Which account ID are you talking about? You own account? It's at the top of this page: https://dashboard.stripe.com/settings/account
this account id, i cannot seem to find it on the dashboard
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
Here's the API request you made to create the token: https://dashboard.stripe.com/test/logs/req_ojfZMEWVHlmKQQ
It was made by platform account acct_1FwxILLCiYIRXZpw on the connected account acct_1GB1enFmMMzcMzw9
Okay so with the platform account I should be using the accountId acct_1FwxILLCiYIRXZpw instead of acct_1GB1enFmMMzcMzw9?
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 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.
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.
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?
You are making these API request, so you have full control on what account you use and why.
I assume this is set up in the dashboard?
No, it's set in your code
Interesting. I am certain that we are not changing anything, once the header is set it is not changed.
I can't really help with this part, since I don't know your code. You'll need to debug this on your end.
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?
I don't think I can share this type of information here. You could try asking Stripe support directly: https://support.stripe.com/contact
okay no problem thank you very much for all your help
Happy to help 🙂