#C-Tra

1 messages · Page 1 of 1 (latest)

steel dewBOT
viral vigil
#

This would mean that the frontend doesn't receives a client secret but only creates a PaymentMethod from a CardElement and send it to the backend, implemented like this:
This piece doesn't make sense to me. Yes the LinkAuthenticationElement does expect a client secret and it's how recent Elements is built AFAIK

#

CardElement is an old integration btw

warm gate
#

What i mean by that is usually from the tutorials and docs, it is suggested that the frontend requests the backend and then the backend creates the PaymentIntent then passes the client secret to the frontend, then the frontend confirms the PaymentIntent.

We did it in a way that, frontend sends request to the backend, the backend creates and also confirms the PaymentIntent. This way the frontend doesn't need to confirm it and doesn't receive the client secret

#

Yeah thats what we are using, so i need some advice so I can implement or suggest to them

viral vigil
#

It's not recommended flow anymore and CardElement is being replaced by the new set (PaymentElement/AddressElement/LinkAuthenticationElement)

#

So you don't need a LinkAuthenticationElement, Link will simply be enabled inside CardElement itself

warm gate
#

Thank you I will have a look at this.

#

So you said that 'it is not recommended flow' . Are you just referring to the PaymentElement ? Is there a way to use PaymentElement with LinkAuthenticationElement without client secret?

edgy ravine
#

👋 Taking over this thread, catching up now

warm gate
#

Sure, thanks

edgy ravine
#

Not recommended flow refers to Card Element. Payment Element is the recommended flow.

#

Is there a way to use PaymentElement with LinkAuthenticationElement without client secret?
No. Both PaymentElement and LinkAuthenticationElement requires client secret to be created

warm gate
#

Just to be sure, this client secret can only received after we create a PaymentIntent right?

edgy ravine
#

Yes, client secret will only be available after payment intent is created

warm gate
#

Alright, I think i got what I need, thanks you very much