On This Page
Afterpay
Afterpay is a Buy Now, Pay Later service that allows customers to purchase items
immediately and pay for them in four interest-free installments over a period of 6
weeks. Afterpay is also known as Clearpay in the UK, and Cash App Afterpay in the US.
For more information, see the
Afterpay and Clearpay Developer
Guide
.Opt in to Afterpay on Unified Checkout
Unified Checkout
Follow these steps to opt in to the Afterpay/Clearpay payment method in
Unified Checkout
: - Add Afterpay to your integration by addingAFTERPAYto theallowedPaymentTypesfield within the capture context request. The default field value isAFTERPAYeven if you want to support Cash App Afterpay in the US or Clear Pay in the UK.
- Set thecompleteMandate.typefield value toAUTH,CAPTUREorPREFER_AUTH.You can perform a sale and capture the funds immediately if you include thecompleteMandate.typefield in the capture context request and set the value toCAPTURE.You can capture the funds later if you include thecompleteMandate.typefield in the capture context request and set the value toAUTH. When you capture the funds later, you must perform a capture using the payments API. See Captures.If you accept more than one payment type and must perform an authorization where funds are collected at a later time, set thecompleteMandate.typefield toPREFER_AUTH. You must perform a capture using the payments API when an authorization is performed. A capture is performed automatically if an authorization is not allowed by the payment type.
- Include these required fields in the capture context request:
- orderInformation.billTo.email
- orderInformation.billTo.firstName
- orderInformation.billTo.lastName
- orderInformation.billTo.address1
- orderInformation.billTo.locality
- orderInformation.billTo.postalCode
- orderInformation.billTo.administrativeArea
- orderInformation.billTo.country
- Include these optional fields in the capture context request:IMPORTANTThese fields are required when therequestShippingfild is set totrue.
- orderInformation.shipTo.firstName
- orderInformation.shipTo.lastName
- orderInformation.shipTo.address1
- orderInformation.shipTo.locality
- orderInformation.shipTo.postalCode
- orderInformation.shipTo.administrativeArea
- orderInformation.shipTo.country