#iulyan-apple-verification

1 messages · Page 1 of 1 (latest)

pine veldt
#

hello

#

How are you initialized Stripe.js client-side?

foggy jetty
#

const stripe = Stripe(secrets.stripePrivateKey)
const setupIntent = await stripe.setupIntents.create({ payment_method_types: ['card'] }, { stripeAccount: request.organization.stripeUserId })

pine veldt
#

that's not client-side

foggy jetty
#

sry

#

const { loadStripe } = await import('@stripe/stripe-js')
stripe = await loadStripe(settings.stripePublicKey, { stripeAccount: organization.stripeUserId })

#

then I add the element

#

const { clientSecret } = await this.setupPaymentIntent()
this._elements = stripe.elements({ clientSecret, appearance: { theme: 'stripe' } })
const element = this._elements.create('payment')
this._element = element
element.mount(self.element.querySelector('[data-stripe]'))

pine veldt
foggy jetty
pine veldt
#

Can you share a URL for me to look at?

pine veldt
#

Please make a page that onluy has the button and nothing else

#

it seems I need to sign up first

foggy jetty
#

the signup is the payment process

#

do not worry

#

dont need to finish it, just go select a plan and type any data

pine veldt
#

would still be drastically easier to just have the button and nothing else :p

foggy jetty
#

so sorry, that's going to take some time because its not my page and Im not familiar with it yet, just trying to solve the apple-pay stuff

pine veldt
#

yeah it's going to be a pain for me to debug, every time I have to reload and re-do the whole thing

foggy jetty
#

trying here

pine veldt
#

I'm also trying to debug this.
Can you add logs easily to log clearly the account id you set?

foggy jetty
#

yes

#

I added the form fields in the backend just type anything and it will go through, adding more easy stuff for you to navigate on the go

pine veldt
#

@foggy jetty okay yeah you did this wrong unfortunately

#

You registered the domain yourself on the connected account, likely in the Dashboard

#

you have to register it through the platform

#

This can only be done via the API

foggy jetty
#

I tried both actually

pine veldt
#

to fix it you need to
1/ delete that domain entirely from that account (required)
2/ re-register the domain properly via the API using the platform's API key
#2 only works if you do #1 first

foggy jetty
#

thanks mate, I will try

pine veldt
#

ping me when you have I can check easily if that part was done right

foggy jetty
#

awesome, thx man

#

I did it, did it work?

pine veldt
#

yes you registered it from the platform now. Does it work?

foggy jetty
#

I think it did now YEY

#

thanks a lot dude

pine veldt
#

yay! Sorry for the trouble, this is so hard to debug for platforms 😦

foggy jetty
#

hehe, its been fun!!! learned a lot on other stripe features on the way rofl

#

appreciate your time buddy