On This Page

{#jumplink-list}  
[Markdown](/docs/cybs/en-us/afterpay/developer/all/so/afterpay/afterpay-intro/afterpay-intro-flow.md)  
Filter  
FILTER BY TAG

Afterpay and Clearpay Workflow {#afterpay-intro-flow}
=====================================================

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

#### Figure:

Workflow ![](/content/dam/new-documentation/documentation/en-us/topics/payments-processing/altpay/afterpay/graphics/afterpay-sequence-flow.svg/jcr:content/renditions/original)

1. The customer begins to checkout on the merchant site.
2. The merchant sends a session API request. See [Create a Session](/docs/cybs/en-us/afterpay/developer/all/so/afterpay/afterpay-services/afterpay-session-intro.md "").
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](/docs/cybs/en-us/afterpay/developer/all/so/afterpay/afterpay-services/afterpay-auth.md "").
7. `Cybersource` returns an `AUTHORIZED` response.
8. The merchant sends a capture API request to complete the payment. See [Captures](/docs/cybs/en-us/afterpay/developer/all/so/afterpay/afterpay-services/afterpay-authcap.md "").
9. `Cybersource` returns a `SETTLED` response.  
   RELATED TO THIS PAGE

