#aksong-ApplePay

1 messages · Page 1 of 1 (latest)

balmy tundra
#

Yes, I believe? You should be able to test a domain

queen bramble
#

when i try the same method that works in a live environment, i get this msg:

The account acct_xxxxx was a test account created with a testmode key, and therefore can only be used with testmode keys.

#

i'm using a live mode key for my platform b/c of guidance in this article: https://support.stripe.com/questions/setting-up-apple-pay-for-direct-charges-on-standard-connected-accounts

#

Am I mis-interpreting that pg?

balmy tundra
#

In which step did you receive that error? Can you provide a request id?

drifting wren
#

Did you re-deploy your backend server with the live keys?

queen bramble
#

so for the apple pay domain registration, i'm always using my live key

queen bramble
#

I'm getting the error from calling:

const result = await stripe.applePayDomains.create( { domain_name: domain }, { stripeAccount: connectAccountId });

balmy tundra
#

The error states that the connectAccountId you are passing in is a test account, created by a test mode key

#

and this call is using a live key

#

so they can't be used together

queen bramble
#

right, but it also doesn't work when i use a test mode key

#

i don't get an error msg when i use my test mode key, but it doesn't work, meaning the domain doesn't seem to be registered

#

everything does work in production, but my goal is to create a test environment w/ appl pay

#

It'd be great to have a support document that details how to setup a test appl pay environment for connect...

balmy tundra
#

Hmm I see what you mean. It could be impossible to test PaymentRequestButton+Connect with a test account

#

let me try

#

Yeah I can't too. Could you write this into Support?