Afterpay and Clearpay Workflow

This workflow describes the sequence of events that comprise a successful Afterpay and Clearpay payment.

Figure:

Workflow
  1. The customer begins to checkout on the merchant site.
  2. The merchant sends a session API request. See Create a Session.
  3. Cybersource
    returns a redirect Afterpay or Clearpay URL to the merchant and a token.
  4. The merchant redirects the customer to the unique Afterpay or Clearpay URL for the customer to complete the payment.
  5. The customer logs into their Afterpay or Clearpay account and completes the checkout. The customer is then redirected back to the merchant site.
  6. The merchant sends an authorization API request with the token from the session response. See Authorizations.
  7. Cybersource
    returns an
    AUTHORIZED
    response.
  8. The merchant sends a capture API request to complete the payment. See Captures.
  9. Cybersource
    returns a
    SETTLED
    response.