#Babu Munavarbasha- Connect Accounts
1 messages · Page 1 of 1 (latest)
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
Hi @sterile viper - how to test Apple Pay on connect test account
There’s no need to add domain association?
could you please provide the request id that generated this error?
here's how you can retrieve it https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
@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
Hey, taking over here.
Hey @true jetty
You need to establish a live mode connection between your platform and connected account
Even for testing Apple pay?
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
So that means the connected account needs to verify the business, etc ?
cant just be another test account
with test info?
test business
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
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
You can just use your live mode OAuth link to connect the existing account: https://stripe.com/docs/connect/oauth-standard-accounts
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?
The link explains it: you'd input the e-mail address and can select from any pre-existing accounts to connect
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
But I dont see apple pay working
What does that mean?
Where are you expecting to see it?
In my payment element
Can you share a PI ID
There's no Apple Pay domains configured for acct_1KtUZ0B9E17FVUt7
Which is the account that PI was created on
acct_1KtUNqAIOdNb3TL3
How do link that account in live?
This is where I added the domain
okay got it now
Its already has a live mode connection to acct_1GpChMBiQZjfzMIz
Is that the platform?
You just need to create the PI on acct_1KtUNqAIOdNb3TL3
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
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?
apwc_1KtD1RBiQZjfzMIzRJaO8X47
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}}',
});
I am doing it via Postman
curl --location --request POST 'https://api.stripe.com/v1/apple_pay/domains'
--header 'stripeAccount: acct_1KtUNqAIOdNb3TL3' \
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'domain_name=securepay-dev.theclinicplace.io'
Is the header wrong?
stripe_account gave a deprecated warning
apwc_1KtD1RBiQZjfzMIzRJaO8X47
That's the wrong header, yep. It's kebab-case (Stripe-Account): https://stripe.com/docs/api/connected_accounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay thanks
pi_3KtVHcAIOdNb3TL30Xlg2rzj
I still dont see the Apple pay on my elements
By any chance do you see it
Let me check
Yeah I don't see it either, 1 second
Can you share how you're initialising Stripe.js/UPE?
I create the intent on the server and assign the client secret to element and also set publishable key with account id
I think it's an issue with how the domain is registered, just reading some things
How did you register it? Via the API?
I did it manually
went into the payment method and configured
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yeah, you can't do that
You need to do it via the API using the platform keys and the Stripe-Account header
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
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
Wohoo
Finally@man
Thanks a lot for your help
🎉 we got there