---
title: "How Checkout Works"
description: "Learn how checkout sessions work in Swipe Aras, from creating a session to processing payments and receiving results through webhooks."
url: https://docs.swipearas.com/en/articles/23-how-checkout-works
collection: "Accepting Payments"
updated: 2026-06-12
language: en
---

# How Checkout Works

Learn how checkout sessions work in Swipe Aras, from creating a session to processing payments and receiving results through webhooks.

A checkout session is the controlled payment flow that Swipe Aras creates for each customer purchase. Here's how it works from start to finish.

## The Checkout Lifecycle

1.  **Create a checkout session** — Your system calls the Swipe Aras API to create a session. You receive a checkout URL or session token.
    
2.  **Customer completes payment** — The customer enters their payment details through the hosted checkout experience.
    
3.  **Swipe Aras processes the payment** — The transaction is authorized (or refused) by Adyen.
    
4.  **You receive the result** — Via webhook event and/or redirect URL.
    
5.  **Funds settle** — Authorized funds accumulate in your store's balance account and payout on your settlement schedule.
    

## Checkout Session Events (Outbound Webhooks)

If you have a webhook endpoint registered, Swipe Aras will send you one of these events for each checkout:

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Event</p></th><th colspan="1" rowspan="1"><p>Meaning</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>created</code></p></td><td colspan="1" rowspan="1"><p>A checkout session was created</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>authorised</code></p></td><td colspan="1" rowspan="1"><p>Payment was successfully authorized</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>refused</code></p></td><td colspan="1" rowspan="1"><p>Payment was declined by the issuer or processor</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>cancelled</code></p></td><td colspan="1" rowspan="1"><p>The session was cancelled before completion</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>error</code></p></td><td colspan="1" rowspan="1"><p>An error occurred during processing</p></td></tr></tbody></table>

## Hosted vs. API Checkout

Swipe Aras offers a hosted checkout experience — the customer is presented with Swipe Aras's secure payment page. This keeps sensitive card data off your systems and reduces your PCI scope.

> API Reference: [api.araspayment.com/api-docs](http://api.araspayment.com/api-docs) — see the Checkout section for full request/response schemas.
