Payment Flow

  1. Merchant requests the authorisation token.
  2. Merchant web screen presents the Afterpay pre-built UI for the PayPal along with the Auth-token and payment details.
  3. Afterpay pre-built UI for PayPal presented to customer
  4. When the customer click on "PayPal" button, information is sent to Afterpay to call the PayPal API to finalise the payment transaction.
  5. Merchant parent screen could have a listener to capture the response sent by Afterpay.