#Babu Munavarbasha- Connect Accounts

1 messages · Page 1 of 1 (latest)

sterile viper
#

Hi, you can't use Connected Accounts created in test mode in live mode

#

you need to create another Connected Account for you live mode

forest cape
#

Hi @sterile viper - how to test Apple Pay on connect test account

#

There’s no need to add domain association?

sterile viper
#

could you please provide the request id that generated this error?

forest cape
#

@sterile viper I cannot find the request Id

#

What i did was use the live key to create apple pay domain for the test connect account as per stripe documentation

#

The request log is not appearing on test and on live as well

#

acct_1KtThSBCcgPCIDHw this is the account Id request was made to

#

if that helps

#

@sterile viper

true jetty
#

Hey, taking over here.

forest cape
#

Hey @true jetty

true jetty
#

You need to establish a live mode connection between your platform and connected account

forest cape
#

Even for testing Apple pay?

true jetty
#

Yep! You can't setup an Apple Pay domain in test mode, and you can't use live keys without a live mode connection.

So you'll need to establish a connection in live mode, and then you can use the Apple Pay domain in test mode

forest cape
#

So that means the connected account needs to verify the business, etc ?

#

cant just be another test account

#

with test info?

#

test business

true jetty
#

No, you don't need to verify the account as you won't actually be processing payments/payouts

#

Just need to create the account using the live keys of the platform, and then re-attempt the adding the Apple Pay domain using live keys of the platform (with the Stripe-Account header like your last API call)

#

Then you can use your test keys with Apple Pay and the same connected account

forest cape
#

So as part of my OAUTH flow instead of creating the account before account link using test keys, i need to create them using live key and i can use the same connected account on test as well.

#

Is there any example of what you are talking about

#

It might be easier for me to use that

true jetty
forest cape
#

I am not sure I understand correctly - When you say account - Is it the email it is linked to, Cos you can create multiple accounts within the same stripe account?

true jetty
#

The link explains it: you'd input the e-mail address and can select from any pre-existing accounts to connect

forest cape
#

Not helpful @true jetty - the accounts that come up on live and test are different

#

I used the same email and created a new business in live

#

i reconnected the same email on test oauth, the business doesnt come up and i connected the old business

#

But I dont see apple pay working

#

added domain on the live

true jetty
#

But I dont see apple pay working
What does that mean?

#

Where are you expecting to see it?

forest cape
#

In my payment element

true jetty
#

Can you share a PI ID

forest cape
#

pi_3KtUbwB9E17FVUt71vfCRwmu

#

This is where I expect

true jetty
#

There's no Apple Pay domains configured for acct_1KtUZ0B9E17FVUt7

#

Which is the account that PI was created on

forest cape
#

acct_1KtUNqAIOdNb3TL3

#

How do link that account in live?

#

This is where I added the domain

#

okay got it now

true jetty
#

Its already has a live mode connection to acct_1GpChMBiQZjfzMIz

#

Is that the platform?

#

You just need to create the PI on acct_1KtUNqAIOdNb3TL3

forest cape
#

I create an account link for the test account using live key and enable the domain

#

that way I should see it working for acct_1KtUNqAIOdNb3TL3

#

correct?

#

Sorry it took a while to understand

true jetty
#

Well there's no Apple Pay domains on acct_1KtUNqAIOdNb3TL3 either

#

I think you've been creating them on acct_1GpChMBiQZjfzMIz inadvertently

#

Can you share your API request code?

forest cape
#

apwc_1KtD1RBiQZjfzMIzRJaO8X47

true jetty
#

Yup, was created on acct_1GpChMBiQZjfzMIz

#

Can you share the actual code? Are you passing the Stripe-Account header?

const domain = await stripe.applePayDomains.create({
  domain_name: 'example.com',
},{
  stripe_account: '{{CONNECTED_ACCOUNT_ID}}',
});
forest cape
#

Okay I created one now..

#

apwc_1KtD1RBiQZjfzMIzRJaO8X47

true jetty
#

I don't see it

#

Can you share the code?

forest cape
#

I am doing it via Postman

#

Is the header wrong?

#

stripe_account gave a deprecated warning

#

apwc_1KtD1RBiQZjfzMIzRJaO8X47

true jetty
forest cape
#

okay thanks

true jetty
#

Did you get sorted?

#

I can see the Apple Pay domain on acct_1KtUNqAIOdNb3TL3 now

forest cape
#

pi_3KtVHcAIOdNb3TL30Xlg2rzj

#

I still dont see the Apple pay on my elements

#

By any chance do you see it

true jetty
#

Let me check

forest cape
true jetty
#

Yeah I don't see it either, 1 second

#

Can you share how you're initialising Stripe.js/UPE?

forest cape
#

I create the intent on the server and assign the client secret to element and also set publishable key with account id

true jetty
#

I think it's an issue with how the domain is registered, just reading some things

#

How did you register it? Via the API?

forest cape
#

I did it manually

#

went into the payment method and configured

true jetty
#

Yeah, you can't do that

#

You need to do it via the API using the platform keys and the Stripe-Account header

forest cape
#

okay i delete this and do it via postman

#

okay i will try that

true jetty
#

Doing it via the Dashboard adds it to only the connected account. But as you're using direct charges, you need to register it as the platform

#

Its super confusing I know

forest cape
#

yep it is, I will let you know how i go in 5 mins

#

apwc_1KtD1RBiQZjfzMIzRJaO8X47

#

Can u check if the domain is added correctly now

#

Finally@man

#

Thanks a lot for your help

true jetty
#

🎉 we got there