#n0tnull_error

1 messages ยท Page 1 of 1 (latest)

tawdry garnetBOT
#

๐Ÿ‘‹ 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.

wide lionBOT
digital wigeon
#

Is this in test mode?

summer zodiac
#

Yes

digital wigeon
#

Can you share a payment intent id?

summer zodiac
#

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

digital wigeon
#

What guide are you following then

summer zodiac
#

Your sample app

digital wigeon
#

So you just installed, replaced the api keys, and ran it?

summer zodiac
#

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

digital wigeon
#

Ok asking a colleague

summer zodiac
#

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

digital wigeon
#

What publishable key are you using?

summer zodiac
#

If I use publishable key alone, it works. As soon as I add the account Id, it fails

digital wigeon
#

What code are you using to add the account?

#

Also are these accounts connected?

summer zodiac
#

My key (for my tests) starts with pk_test_

summer zodiac
digital wigeon
#

What code are you using to add the account id?

#

And can you share both accounts' id's

manic vale
#

๐Ÿ‘‹ 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

summer zodiac
#

Account ids are not supposed to be a sensitive information? I'm not sure I can share them here securely

wide lionBOT
manic vale
#

Sharing account ID acct_xxx is fine

summer zodiac
#

Accounts are connected via Stripe Connect

manic vale
#

can you share the account IDs?

summer zodiac
#

Main account: ||acct_16lE5nATL9zpwulW||
Connected account: ||acct_1CdDahKjj6RIsA4Z||

manic vale
#

I wonder if this is due to the connected account only being connected to the platform in live mode ๐Ÿค”

summer zodiac
#

So it may work in production environment but not in test? ๐Ÿค”

manic vale
#

Yeah, do you happen to have a different test connected account you can try with?

summer zodiac
#

Hmm, I think so. Do you want me tro try with it?

manic vale
#

Sure

summer zodiac
#

Currently setting-up everything, thanks for waiting

manic vale
#

no worries

summer zodiac
#

Same issue

manic vale
#

can you share the account ID you're trying with?

summer zodiac
#

||_||

manic vale
#

this one also seems to be connected in live mode only.

summer zodiac
#

So it should work in production but not in test?

manic vale
summer zodiac
#

Is it possible to link a previously created account, or is it only when creating a new one?

manic vale
#

Make sure to use your main account's test mode API keys for token creation etc

summer zodiac
#

Interesting, I'll also check this

spare forge
#

Apologies, my thing was for web integrations. Does not apply to android.

summer zodiac
#

Are you sure?

manic vale
#

yup, domain registration is for web based integration.

summer zodiac
#

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

manic vale
#

Great, so it works now?

summer zodiac
#

I connected one account and re-testing now

#

Yes, it works ๐ŸŽ‰

#

Thank you very much

manic vale
#

NP! ๐Ÿ™‚ Happy to help