Connect Commercetools with Afterpay to add buy now, pay later at checkout, support key markets, and keep payment logic stable across APIs, carts, and order flows.
• Afterpay is exposed as a payment method in commercetools checkout, and the Afterpay token/authorization details are stored on the commercetools Payment object.
• The payment flow routes create, authorize, capture, and void events between commercetools and Afterpay, with transaction states mirrored back to order state transitions.
• Order totals, currency, customer, shipping, and tax amounts are mapped from commercetools carts/orders into the Afterpay payment request to keep the authorized amount consistent.
• Refunds initiated in commercetools generate Afterpay refund requests, and refund status updates are written back to the related Payment transactions for reconciliation.
• Webhook callbacks from Afterpay are validated and logged, then used to update payment status in commercetools to prevent stale states and duplicate captures.
• Idempotency keys and reference IDs are used to deduplicate retries, and failure responses are recorded with error codes for downstream monitoring and support.
.png)
We implement Afterpay as a Commercetools payment method using the Payments API, then wire authorization, capture, and status updates into your cart and order flows.
Order totals, currency, customer and shipping details, and line items are used for the Afterpay decision, while payment status and transaction IDs are stored back in Commercetools.
Yes, we map refunds and cancellations to Afterpay transactions and keep Commercetools payments and order states consistent for full and partial returns.
Yes, eligibility can be controlled by project configuration and custom logic, including market, currency, cart value, and customer type.
We build clear failure states, retries where appropriate, and webhook-driven updates so declines, pending states, and captures don’t break the order pipeline.














