#shaya8089
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- shaya8089, 1 day ago, 16 messages
Hey there
You have to verify the domain on your Connected Account in this case as well
Oh, will try that, thanks!
Just don't lock the thread yet...
It will stay open for a bit, no worries.
Unfortunately it now returns false
acct_1HOi0zBZ8ZBlypAn
Okay and if you are comfortable providing it, what is the link to your checkout page?
there's a console.log(for canMakePayment)
Fort that I get Apple
const stripe = new window.Stripe('pk_live_51HOi0zBZ8ZBlypAnP6sIDa1J7UcN6V63zdBgsdWniAnsdjXvfrEwwraJUjU6sHxr4xKwGDtTHTOMlw70lbtuVrkY00FUJx5fES',
{
stripeAccount: 'acct_1HOi0zBZ8ZBlypAn',
locale: 'auto'
});`
But not when I pass in the main account with that key: pk_live_51HOi0MGyky3qQC8IoGJcP6oVH1Y6keq5yylsHPajLMVTC2zf1HZkThofU14Wcpi3DM2I0oadme3kL6u9CZFEMJjw00gmM4ddhS
Looking give me a min
Ah did you register via that account as opposed to the platform?
I registed in both, in that account and in the platform
You need to use your platform key and pass the Stripe Account header to register the domain
If you just register using the Connected Account itself it won't work
And that can done only via tha API?
Yes
That end point that you shared above will add the domain to both, the account and the platform?
No it adds to whatever account you initialize your Stripe instance with.
So if you just use your platform API key then it registers on your platform
If you use your platform API key + pass the Stripe Account ID then it registers on your Connected Account
gotcha
See: https://stripe.com/docs/connect/authentication for how these Connect requests work
Will try that
Thanks so much for your help!
can you just leave the thread open for a few more mins while I try that
thanks again
Sure thing
Is stripe.paymentMethods always included in the SDK? I get undefined for that:
const stripe = require('stripe')(process.env.STRIPE_API_KEY);
console.log(stripe.paymentMethodDomain);
// undefined
sorry for the typo
No the stripe instance won't return the payment method domains
but the function is undefined
for example if i do
console.log(stripe.accounts);
i get the function in the console, but not when I do console.log(stripe.paymentMethodDomain);
Sorry for bothering,
In my code I don't have the type, and I still get undefined
const stripe = require('stripe')(process.env.STRIPE_API_KEY);
console.log(stripe.paymentMethodDomains);
It's really weird
Maybe it has to do with versions?
I'm on "stripe": "^8.131.1",
Yeah you might be on an old SDK version
Ah yeah that is quite old
paymentMethodDomains was added in 13.5.0: https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#1350---2023-09-07
So you'll want to upgrade
Oh, thanks again!
Sure
Yes
The Changelog highlights the breaking changes with each major version
I'd recommend testing thoroughly first before updating your production code
Hooray! it's working now...
You're the best!
Wahoo!
I have one final question:
I understand that basically the only to work on Apple Pay is in live mode, so I will need to do real transactions to test it out?
are the any tricks work arounds?
Nope it works fine in test mode. You just have to have a live card in your wallet to test it. But as long as you use your test keys then we automatically swap out that live card for a test card in test mode when you go through the flow and then your live card isn't charged.
Hey @muted monolith , @latent gorge was amazing!
๐ glad to hear it ๐