#BartekM-googlepay

1 messages · Page 1 of 1 (latest)

swift kraken
#

Hi! Can you share the PaymentMethod ID (pm_xxx)?

gilded hound
#

Google Pay: pm_1L02B8HOyZ0rDvCTWyVUG8YT

gilded hound
#

Apple Pay: pm_1L01ZWHOyZ0rDvCT8uxcm6xi

swift kraken
#

Thanks! Give me a few minutes to look into this.

swift kraken
#

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.

gilded hound
#

What should I use instead of a Payment Element to get an email.

swift kraken
#

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
gilded hound
#

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?

swift kraken