#n0tnull_error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1217852340804260011
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Is this in test mode?
Yes
Can you share a payment intent id?
What do you mean by payment intent Id ?
The app display an error just before GPay handle anything to Stripe
My goal is to have a payment method from GPay in order to validate the payment
What guide are you following then
Your sample app
Stripe Android SDK . Contribute to stripe/stripe-android development by creating an account on GitHub.
So you just installed, replaced the api keys, and ran it?
Pretty much yes
I wanted to test how Stripe was working with GPay as I already have GPay working in my app but via another payment provider
Ok asking a colleague
Can you try if you haven't already? https://developers.google.com/pay/api/android/support/troubleshooting#request-failed
Error in loadPaymentData: Invalid stripe:publishableKey for current environment. Make sure you are using Stripe's test key.
And yes, this key is valid for the test environment
What publishable key are you using?
If I use publishable key alone, it works. As soon as I add the account Id, it fails
My key (for my tests) starts with pk_test_
This is an account related to another country but linked with the main account
What code are you using to add the account id?
And can you share both accounts' id's
๐ jumping in to help out here
When you say "linked with the main account", what exactly does that mean?
How are they linked?
Each stripe account has their own set of publishable and secret keys
Unless these accounts are connected via Stripe connect, you can't use main account key for other accounts
Account ids are not supposed to be a sensitive information? I'm not sure I can share them here securely
Sharing account ID acct_xxx is fine
Accounts are connected via Stripe Connect
can you share the account IDs?
Main account: ||acct_16lE5nATL9zpwulW||
Connected account: ||acct_1CdDahKjj6RIsA4Z||
I wonder if this is due to the connected account only being connected to the platform in live mode ๐ค
So it may work in production environment but not in test? ๐ค
Yeah, do you happen to have a different test connected account you can try with?
Hmm, I think so. Do you want me tro try with it?
Sure
Currently setting-up everything, thanks for waiting
no worries
Same issue
can you share the account ID you're trying with?
||_||
this one also seems to be connected in live mode only.
So it should work in production but not in test?
Can you try creating a new account using test mode keys and see if that helps?
https://docs.stripe.com/connect/standard-accounts
Is it possible to link a previously created account, or is it only when creating a new one?
You can use the OAuth flow for existing accounts
https://docs.stripe.com/connect/oauth-reference
Make sure to use your main account's test mode API keys for token creation etc
Interesting, I'll also check this
Apologies, my thing was for web integrations. Does not apply to android.
Are you sure?
yup, domain registration is for web based integration.
I think your doc on connecting account is what I was missing
I think you were right and they were connected only for the production environment
Great, so it works now?
I connected one account and re-testing now
Yes, it works ๐
Thank you very much
NP! ๐ Happy to help