#C-Tra
1 messages · Page 1 of 1 (latest)
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
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
It's not recommended flow anymore and CardElement is being replaced by the new set (PaymentElement/AddressElement/LinkAuthenticationElement)
But yes what you are asking seem to be this Link + Card Element thing https://stripe.com/docs/payments/link-card-element
So you don't need a LinkAuthenticationElement, Link will simply be enabled inside CardElement itself
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?
👋 Taking over this thread, catching up now
Sure, thanks
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
Just to be sure, this client secret can only received after we create a PaymentIntent right?
Yes, client secret will only be available after payment intent is created
Alright, I think i got what I need, thanks you very much