Can I pre-populate the Email field for stripe.checkout?

I’ve tried in vain to supply the registered (Google) email during a Stripe checkout so users don’t have to slavishly type it in again:

token, info = stripe.checkout.get_token(amount=999,
                   currency="GBP",
                   title="Thanks for your money",
                   email=anvil.users.get_user()['email'],)

I’ve also tried using keyword “Email” (capital E).

Is this simply not possible e.g. for security reasons or is there another way of achieving this please?

Thanks!

Hi there,

I’m afraid there’s no way to do this right now, but it’s such a good idea we’ve gone ahead and implemented it. If you leave your code exactly the way it is in that sample (with the email keyword argument), it will just start working some time over the next few days :slight_smile:

3 Likes

Fantastic! Thanks so much (again) for being so responsive. I hope Anvil grows and thrives but never loses the personal touch that sets its support and evolution apart from so many other products out there :slight_smile:

2 Likes

Has this feature been implemented yet?