#yohana2211

1 messages · Page 1 of 1 (latest)

quiet zephyrBOT
dusk blade
#

Hi there, what's the paymentIntent ID?

fair torrent
#

pi_3NQ5wYLibZt8EYKW1yYR4CbZ

dusk blade
fair torrent
#

The email field is coming with elements on stripe js .. how do I set that

dusk blade
fair torrent
#

and it says on live env. email is being sent regardless of the settings

dusk blade
#

You should set the email address in either receipt_email of the PaymentIntent, or the email of the customer associated with this PaymentIntent.

fair torrent
#

Alright I can set that on our server side while creating client secret .. but it will ask email again while the stripe elements load ... how can i control that?

dusk blade
#

Can you show me your frontend js code?

fair torrent
#

alright

#

Give me a moment .. loading IDE to take a screenshot

dusk blade
fair torrent
#

Alrihgt then .. let me do that .. in case of any challenge .. will revert

#

where do I call this defaultValues.email object ?

#

Like this?

dusk blade
#
elements.create('linkAuthentication', {defaultValues: {email: "YOUR_CUSTOMER_EMAIL"}})
fair torrent
#

super .. thanks .. let me do that

#

Thanks ... I managed to

#

now let me modify the server side and include email on the billing details

fair torrent
#

Hello, I tested but getting an error that billing_details was unknown

#

Received unknown parameter: billing_details

dusk blade
#

Can you show me the code?

fair torrent
#

alright

dusk blade
#

PaymentIntent doesn't have a billing_details field.