#heisend-applepay-connect
1 messages ยท Page 1 of 1 (latest)
hello! ah this can be complex, let's start here, what is the Platform account ID, what is the Connect acct ID and what is the domain you registered
can i send those here? or dm?
sending here is fine, just
1/ Platform acct ID
2/ Connect acct ID
3/ domain
4/ and how you are initializing Stripe.js (please redact any API keys in there but share just the snippet like:
var stripe = Stripe('{{PLATFORM_PUBLISHABLE_KEY}}', {
stripeAccount: '{{CONNECTED_STRIPE_ACCOUNT_ID}}',
});
platform: acct_1GAfPpE3SDEC6PcZ
connected acct: acct_1Iabp9J7hRt0Zipd
domain: mx-tickets-dev-alex.web.app
init:
const stripePromise = loadStripe(
process.env.REACT_APP_STRIPE_PUB_KEY as string,
{
stripeAccount: currentTenant.stripeAccount,
},
);
ah perfect so ..
init should be alright, works with the other methods
you are initializing Stripe.js as the Connect account
and that is fine
but in that case, you need to register the Apple Pay domain on the Connect account as the Platform
right now you registered the domain directly as the Connect account
1/ delete the domain on the Connect account first
2/ once deleted, re-add the domain on the Connect account but this time, using the Platform secret key and the Stripe-Account header as explained here:
https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect
see second code snippet
remember to do this step in live mode also (using live mode Platform secret key and obv pls don't share that here, just heads up!)
do 1/ first, then 2/ and then try again and it should work
Ahhh ok. so theres actually a difference in where we add that? (stripe dashboard/api)
So we need to also automate that one for any new connected accounts?
2/ would always be via API, not Dashboard
and yes you'd automate it in that you use the API to make the request in 2/ for every new Connect account
ok, thank you very much ๐
"error": {
"message": "The account acct_1Iabp9J7hRt0Zipd was a test account created with a testmode key, and therefore can only be used with testmode keys.",
"type": "invalid_request_error"
}
}```
so i can only test apple pay in live mode? ๐
or with an live account?
To test apple pay with a connect account, the account must be connected to the platform in live mode