Skip to main content
Adyen is a global payment technology company founded in 2006 in Amsterdam, Netherlands. The company provides a single platform for accepting payments across online, mobile, and in-store channels for major enterprises worldwide including Uber, Spotify, and Microsoft. Cash App Afterpay is a buy now, pay later (BNPL) payment method offered by Block in the United States, where Afterpay is now part of Cash App. The buyer approves the purchase with Afterpay and pays for it in installments. Cash App Afterpay is known as Afterpay Touch in some regions, and Adyen processes it as the afterpaytouch_US payment method.

Setup

Please follow the common Adyen instructions to get set up with Cash App Afterpay. Next, make sure to enable Cash App Afterpay as a payment method on your configured account.

Supported countries

Supported currencies

Capabilities

Required fields

Cash App Afterpay requires the buyer’s billing details and the cart items on every transaction. Include the following buyer fields when creating a transaction:
  • buyer.billing_details.first_name
  • buyer.billing_details.last_name
  • buyer.billing_details.email_address
  • buyer.billing_details.address.line1
  • buyer.billing_details.address.city
  • buyer.billing_details.address.state
  • buyer.billing_details.address.postal_code
  • buyer.billing_details.address.country
Also send cart_items with the transaction. Afterpay uses the cart to present the installment plan to the buyer, and the transaction fails when the cart is missing.

Integration

For Cash App Afterpay, the default integration for Adyen is through a redirect to a hosted payments page.

Redirect integration

Start by creating a new transaction with the payment method set to cashappafterpay, along with the buyer billing details and cart items listed in Required fields.
After the transaction is created, the API response includes payment_method.approval_url and the buyer_approval_pending status.
Redirect the buyer to the approval_url so they can approve the installment plan with Afterpay. After approval the buyer is redirected to the redirect_url you provided when creating the transaction. Do not rely solely on the redirect - either poll the transaction or (recommended) rely on webhooks to detect the final status (for example capture_succeeded or failure states).

Direct integration

Adyen provides web, Android and iOS SDKs for a direct integration. For these flows you should indicate the platform by setting an appropriate integration_client when creating the transaction, and then build a client-side integration that uses the POST /transactions/:transaction_id/session API to initialize the Adyen SDK. For mobile, set integration_client to ios or android and use your app deep link for redirect_url (for example, yourapp://). After the transaction is created, the API response includes a session_token which can be used to get the session data for that transaction.
This session data provides the sessionId and sessionData required to load the Adyen SDK. Refer to the Cash App Pay direct integration for a worked example of initializing the Adyen SDK with this session data.

Testing

Adyen has instructions on how to test Cash App Afterpay.