#shaya8089

1 messages ยท Page 1 of 1 (latest)

devout pantherBOT
#

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.

latent gorge
#

Hey there

#

You have to verify the domain on your Connected Account in this case as well

humble crater
#

Oh, will try that, thanks!

latent gorge
#

Sure thing

#

Let me know if it still doesnt work after you do that

humble crater
#

Just don't lock the thread yet...

latent gorge
#

It will stay open for a bit, no worries.

humble crater
#

Unfortunately it now returns false

latent gorge
#

How did you register the domain?

#

And can you provide me the Connected Account ID?

humble crater
#

acct_1HOi0zBZ8ZBlypAn

latent gorge
#

Okay and if you are comfortable providing it, what is the link to your checkout page?

humble crater
#

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

latent gorge
#

Looking give me a min

#

Ah did you register via that account as opposed to the platform?

humble crater
#

I registed in both, in that account and in the platform

latent gorge
#

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

humble crater
#

And that can done only via tha API?

latent gorge
#

Yes

humble crater
#

That end point that you shared above will add the domain to both, the account and the platform?

latent gorge
#

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

humble crater
#

gotcha

latent gorge
humble crater
#

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

latent gorge
#

Sure thing

humble crater
#

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

latent gorge
#

No the stripe instance won't return the payment method domains

humble crater
#

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);

latent gorge
#

Oh you want paymentMethodDomains

#

You are missing an s on the end

humble crater
#

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",

latent gorge
#

Yeah you might be on an old SDK version

#

Ah yeah that is quite old

#

So you'll want to upgrade

humble crater
#

Oh, thanks again!

latent gorge
#

Sure

humble crater
#

Do I need to worry for breaking major changes while updating

#

?

latent gorge
#

Yes

#

The Changelog highlights the breaking changes with each major version

#

I'd recommend testing thoroughly first before updating your production code

humble crater
#

Hooray! it's working now...

You're the best!

latent gorge
#

Wahoo!

humble crater
#

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?

latent gorge
#

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.

devout pantherBOT
humble crater
#

Hey @muted monolith , @latent gorge was amazing!

muted monolith
#

๐Ÿ‘ glad to hear it ๐Ÿ™‚