#BartekM-googlepay
1 messages · Page 1 of 1 (latest)
Google Pay: pm_1L02B8HOyZ0rDvCTWyVUG8YT
Apple Pay: pm_1L01ZWHOyZ0rDvCT8uxcm6xi
Thanks! Give me a few minutes to look into this.
Sorry for the delay.
So it looks like you are using the PaymentElement to collect the payment.
However the PaymentElement doesn’t actually collect an email address so I don’t think you can get it.
What should I use instead of a Payment Element to get an email.
You have two main options:
- Collect the email separately yourself, for example by adding an extra field above the PaymentElement
- Or use Checkout Session instead of the PaymentElement
We wanted to avoid the extra email field and get it from Apple Pay.
Our implementation is quite specific (we use a subscription schedule). So Checkout session is not an option, is it?
You can directly create a Subscription Schedule with a Checkout Session, correct. But you could create a regular subscription, and then transform it into a schedule as explained here: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription