#Borba
1 messages · Page 1 of 1 (latest)
Hi there. Is that the complete error you get? Is there a request ID for that that you see in the dashboard? 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.
sure, one second
the error I'm getting is on the front end {error: {code: "incomplete", type: "validation_error", message: "Please fill in your card details."}}
Ok. Can you share the code snippet you're using on the front-end here to confirm the setupintent?
Starting with where you initialize Elements
so.. this is what I return from the server
----- server
const setupIntent = await stripe.setupIntents.create({ payment_method_types: ['card'] }, { stripeAccount: request.organization.stripeUserId })
return ({ clientSecret: setupIntent.client_secret })
------- client
this._elements = stripe.elements({ clientSecret, appearance: { theme: 'stripe' } })
const element = this._elements.create('payment')
this._element = element
element.mount(self.element.querySelector('[data-stripe]'))
----- client
await stripe.confirmSetup({ elements: this._elements, redirect: 'if_required' })
the request id is req_KidC2uMqj1KI7M
any help here?
Sorry juggling multiple threads
Can you share more of your client code? How are you integrating Apple pay?
Oh just through the payment element?
I recommend closely following this guide: https://stripe.com/docs/payments/save-and-reuse
just through payment element
thi s is the client code there's implementation specific for the framework I'm using but this should cover what we need to setup intent
Hi 👋
I'm stepping in for @placid glen as they have to go
So you are just implementing the Payment Element as we show here?
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
I'm following this https://stripe.com/docs/payments/payment-element/migration?integration-path=future
This is for people migrating from Card Element and other single payment method elements to the Payment Element. Are you still in the process of migrating?
No, I've already migrated and applepay used to work
Okay so this setup intent is being made by the Platform ae.studio for the account studio.sannevloet.co?
shouldn't this work?
I grab the setupintent client secret
I initiate the elements with the client secret
then call confirmSetup with the elements
ae.studio through connect
Well Connect is involved so that makes things more difficult
What Public Key pk_ are you using to initialize Stripe.js?
The stripe instance needs to be initialized with the account ID like this example below:
var stripe = Stripe('pk_test_123',{
stripeAccount: 'acct_123'
});
yes, I'm doing that on both places
Okay, I don't suppose you have a front-end I could take a look at?
In the mean time, you should also be familiar with the docs we have specific to Apple Pay https://stripe.com/docs/apple-pay
Do you see any errors in the console when loading the payment element that might indicate why Apple Pay is no longer appearing?
Hi, stepping in as snufkin had to step away. I'll be happy to further assist if you're able to add more details here.