Back to Blog

Checkout v2

A redesigned checkout experience with provider selection, better mobile support, and customisation options.

We are releasing Checkout v2. The hosted checkout page has been rebuilt from scratch with a focus on conversion, mobile experience, and giving you more control over the appearance.

What changed

Provider selection UI

v1 showed all available providers as a flat list. v2 groups them by type bank transfer, mobile money, crypto and surfaces the most commonly used options first. In testing, this reduced time-to-payment-method selection significantly.

Mobile layout

The v1 checkout was not optimised for small screens. v2 is mobile-first. The payment form, provider list, and confirmation screen are all designed for thumb navigation.

Redirect behaviour

v1 always redirected to your callback_url after payment, regardless of outcome. v2 separates success and failure redirects.

const checkout = await access.checkout.create({
  amount: 500,
  currency: "ETB",
  callback_url: "https://yourapp.com/payment/callback",
});

Your success page receives the tx_ref as a query parameter. Use it to verify the transaction before fulfilling the order.

New Features

Custom branding

You can now pass a branding object when creating a checkout session to match the page to your product.

const checkout = await access.checkout.create({
  amount: 500,
  currency: "ETB",
  success_url: "https://yourapp.com/payment/success",
  cancel_url: "https://yourapp.com/payment/cancelled",
  branding: {
    name: "Acme Store",
    logo_url: "https://yourapp.com/logo.png",
    primary_color: "#6366f1",
  },
});

Pre-select a provider

If you know which provider your customer uses, you can pre-select it to skip the selection screen entirely.

const checkout = await access.checkout.create({
  amount: 500,
  currency: "ETB",
  success_url: "https://yourapp.com/payment/success",
  cancel_url: "https://yourapp.com/payment/cancelled",
  provider: "telebirr",
});

Expiry

Checkout sessions now expire after 30 minutes by default. You can override this with an expires_in value in seconds.

const checkout = await access.checkout.create({
  amount: 500,
  currency: "ETB",
  success_url: "https://yourapp.com/payment/success",
  cancel_url: "https://yourapp.com/payment/cancelled",
  expires_in: 900, // 15 minutes
});

Migration

The only required change is replacing callback_url with success_url and cancel_url. Everything else is additive.