#Mint

1 messages · Page 1 of 1 (latest)

slow quartzBOT
hoary lion
#

Hi there, do you intent to use PaymentElements or IBanElements? Because the integrations are different

timid kayak
#

I just want to use Iban elements

#

for SEPA payment method

hoary lion
#

OK, then you don't need to use <Elements>, you can remove it from your code

timid kayak
#

got this message mate

hoary lion
#

Ah, sorry my mistake, you still need to wrap it

timid kayak
#

Do i need to also wrap IBanelement by ElementConsumer

hoary lion
#

Does your frontend app has a valid clientSecret when rendering the <Elements> ?

timid kayak
#

Can I use clientSecret from a setup intent ? Or I need to use client secret from a payment intent

#

Because from first render there is no payment created yet

hoary lion
#

Actually you don't need to have condition like clientSecret ? (<Elements ... if you are not using PaymentElement, this condition will prevent <Elements from rendering if clientSecret is empty

#

You should just remove clientSecret ? condition

timid kayak
#

My code is looking like this

#

Does it looke right ?

#

The element show like this all the time

hoary lion
#

Hmm, why <ElementsConsumer ?

#

You need to adjust the heights of the div that contains the <Elements>

timid kayak
#

Let me check again

#

Thanks