#iulyan-apple-verification
1 messages · Page 1 of 1 (latest)
const stripe = Stripe(secrets.stripePrivateKey)
const setupIntent = await stripe.setupIntents.create({ payment_method_types: ['card'] }, { stripeAccount: request.organization.stripeUserId })
that's not client-side
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]'))
what do you see at the top of this page: https://stripe.com/docs/stripe-js/elements/payment-request-button
Can you share a URL for me to look at?
Please make a page that onluy has the button and nothing else
it seems I need to sign up first
the signup is the payment process
do not worry
dont need to finish it, just go select a plan and type any data
would still be drastically easier to just have the button and nothing else :p
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
yeah it's going to be a pain for me to debug, every time I have to reload and re-do the whole thing
trying here
I'm also trying to debug this.
Can you add logs easily to log clearly the account id you set?
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
@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
I tried both actually
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
thanks mate, I will try
ping me when you have I can check easily if that part was done right
yes you registered it from the platform now. Does it work?
yay! Sorry for the trouble, this is so hard to debug for platforms 😦