How do I manage user authentification on my ecommerce website when integrating Apple Pay

Hello,

I am interested in adding Apple Pay on the Product Detail Page of the e-commerce website I manage.

I am wondering how authentication on my website will work with Apple Pay.

Here is our current process:
  1. User has an account: if user is logged out, in order to access the checkout page, we require user to login

  2. User has no account: if user is logged out and has no account, in order to access the checkout page, we require user to share an email


With ApplePay, how do we manage logged out users?

The flow would be:
  • user is logged out

  • user is on PDP

  • user selects a size

  • we prompt "buy with ApplePay"

  • user validates ApplePay

  • we prompt the ApplePay payment sheet with all configurable fields

  • user finalize the purchase

The problem in this flow:
  1. User has an account: In this flow, how do I link this purchase to the existing account in my backend system so that user can see his order history?

  2. User has no account: In this flow, at what point in time does the account gets created in my back-end so that I can create an internal member ID and process the order?

Thanks,

Marguerite

How do I manage user authentification on my ecommerce website when integrating Apple Pay
 
 
Q