-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing an email to Checkout using JS #152
Comments
Hi @bleepsandblops Yes please follow the next example: {% set options = {
email: 'customer-email@test.com'
} %}
{{ craft.enupalstripe.paymentForm('handle', options) }} Here you can see all the other options that you can pass to the We'll add this to the docs soon |
@andrelopez thank you, but that's through twig though, not client-side; is there a way to do it client-side? |
@bleepsandblops I see, from JS you need to set the value to the hidden email input, in this example $("#enupal-stripe-1009 input[name='enupalStripe[email]']").val('test@test.com'); |
@andrelopez ah great thanks! |
@andrelopez it's not working actually, and I think I can see why. |
@bleepsandblops I am trying to do the same thing - did you perhaps find a solution to this? |
@lucasdaniels I did not unfortunately, sorry! |
Description
Is there a way to pass an email to Checkout so that it's automatically pre-filled, using the front-end? If I dig in the files, it looks like the hidden input
enupalStripe[stripeData]
gets parsed then emptied; is there a way for me to send the customer_email through?Additional info
The text was updated successfully, but these errors were encountered: