#Borba

1 messages · Page 1 of 1 (latest)

hearty crowBOT
placid glen
dire dagger
#

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."}}

placid glen
#

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

dire dagger
#

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?

placid glen
#

Sorry juggling multiple threads

#

Can you share more of your client code? How are you integrating Apple pay?

#

Oh just through the payment element?

dire dagger
#

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

grand sapphire
#

Hi 👋

I'm stepping in for @placid glen as they have to go

dire dagger
grand sapphire
#

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?

dire dagger
#

No, I've already migrated and applepay used to work

grand sapphire
#

Okay so this setup intent is being made by the Platform ae.studio for the account studio.sannevloet.co?

dire dagger
#

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

grand sapphire
#

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'
});
dire dagger
#

yes, I'm doing that on both places

grand sapphire
#

Okay, I don't suppose you have a front-end I could take a look at?

#

Do you see any errors in the console when loading the payment element that might indicate why Apple Pay is no longer appearing?

indigo spire
#

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.