#Reduviidae
1 messages · Page 1 of 1 (latest)
Hello 👋
Good question, let me look into a couple of things and I'll respond as soon as I can
Example of my attempt to register:
curl https://api.stripe.com/v1/apple_pay/domains \
-u sk_[live]_xxxxxyyyyyyzzzzz: \
-H "Stripe-Account: acct_aTestConnectAccount" \
-d domain_name=testAccount.testEnvironment.Mydomain.org
{
"error": {
"message": "The account acct_aTestConnectAccount was a test account created with a testmode key, and therefore can only be used with testmode keys.",
"type": "invalid_request_error"
}
}
Can you try registering the domain via the dashboard instead?
I believe we've recently changed the flow a bit and the docs might be outdated
Ah wait, I think I am wrong.
Yeah, right now I can't find a way to access that. I tried visiting the test page for the connect account and I can't reach the settings page for setting up a domain. I can reach it for the platform account, but not for the connect account.
Unfortunately, currently it's not possible. For direct charges with Apple Pay on a connected account the platform must validate the Apple Pay domain on the connected account in live mode.
If you only have a test mode connection then you can't validate the domain. There's no way to do this as the platform from the Dashboard.
Apologies for the confusion
Okay, obviously I can go test this myself, but I figure I'll ask anyway:
I can go register the domain using the live account and not put it under a connect account. Ex:
curl https://api.stripe.com/v1/apple_pay/domains \
-u sk_[live]_xxxxxyyyyyyzzzzz: \
-d domain_name=testAccount.testEnvironment.Mydomain.org
But does this mean I still would not be able to make payments to the test connect account with Apple Pay? Or would Stripe be smart enough to sort that out behind the scenes?
Like, Stripe.js would still be initialized as:
const stripe = Stripe('pk_test_xxxxxxx', {
apiVersion: "2022-11-15",
stripeAccount: 'CONNECTED_STRIPE_ACCOUNT_ID',
});
Would that not work since the domain would be registered in live without being under the Connect account?
It wouldn't work with direct charges which you seem to be creating, yes?