#Srujan

1 messages · Page 1 of 1 (latest)

orchid basinBOT
drifting copper
hollow palm
#

So I already registered domain and I have the wallets enabled in /settings/payment_methods/connected_accounts

drifting copper
#

What request are you getting the above error in?

#

Can you share the request id?

hollow palm
drifting copper
#

What I mean is where is that error coming from? A server side request, the browser console, etc

hollow palm
#

browser console

drifting copper
#

Got it. Can you share the payment intent you're trying to initialize?

#

pi_123

hollow palm
#

Would clientSecret be sufficient?

drifting copper
#

If you're referring to the PI's client secret, yeah that works

hollow palm
#

pi_3MFk2kDTwu9XYxBB0u0bcSxi

drifting copper
#

Ah this is a direct charge. You have to register the apple pay domains on your connect account as well

hollow palm
#

I have this const stripePromise = loadStripe(stripeConfig.publicKey, { stripeAccount: stripeConfig.accountId });

drifting copper
#

But you need to register the domain on your stripe account

#

See link I sent

#

Needs to be performed on your connect account

hollow palm
#

Oh I see step 2?

drifting copper
#

Correct

#

You only did that for your platform

#

And make sure to use the live mode key

#

Apple Pay only works (even for just testing) if you use the live mode key to register the domains and if the platform and connect account are connected in live mode

hollow palm
#

Or you mean const domain = await stripe.applePayDomains.create({ domain_name: 'example.com', },{ stripe_account: '{{CONNECTED_ACCOUNT_ID}}', });?

drifting copper
#

No. So you registered the domain on the above page. That registers the domain on your platform account. You're performing a direct charge on your connect account, so that means you will also need to register the domain on your connect account. The way to do that is with an api call (step 2 in the link I sent).

#

Yes the above code snippet

#

Read the link I sent. It explains why

hollow palm
#

how do i add multiple domains in that code snippet?