Skip to main content
E-commerce

The checkout built for your website

Create one payment session per order, redirect your customer to a secure hosted checkout, and get the result back on your site — card with 3-D Secure.

POST /v1/payment-sessions
POST /v1/payment-sessions{  "amount": 349.00,  "externalId": "order-5821",  "acceptUrl": "https://…/merci",  "declineUrl": "https://…/echec"} // 201 Created{  "reference": "ps_9Kt2Lm",  "status": "ACTIVE",  "checkoutUrl": "https://…"}

Hosted checkout

The payment page is operated by ChariPay: you never handle your customers' card data.

One order, one session

Each session has a limited lifetime and is consumed only once: no double charging.

3-D Secure

Cardholder authentication is built into the card payment flow.

Automatic return

Success and failure URLs, results notified by signed webhook: your site always knows where the payment stands.

Hosted storefront

No website yet? Publish your products on your hosted storefront and follow your orders through to delivery.

Refunds

Refund a customer, in full or partially, from the portal or through the API.

The portal, for real

What you see after the first sale

Everything in and out, in one place: payments, refunds, fees and payouts. Each row opens into the operation's detail and its timeline.

Real screenshot of the portal. Amounts, names and references are fictional — the screen is the one you will get.

portal-psp.charipay.ma
ChariPay portal “Transactions” screen: incoming, outgoing, pending and net balance, then the operation list.

Integration in three calls

Create the session server-side, redirect your customer to the checkout URL, receive the result via a signed webhook. Your integration stays simple — and your customers stay reassured.

POST /v1/payment-sessions
POST /v1/payment-sessions{  "amount": 349.00,  "externalId": "order-5821",  "acceptUrl": "https://…/merci",  "declineUrl": "https://…/echec"} // 201 Created{  "reference": "ps_9Kt2Lm",  "status": "ACTIVE",  "checkoutUrl": "https://…"}

The hosted storefront, to sell without a site

Publish your products, collect the order and follow its full lifecycle — awaiting payment, paid, shipped, delivered — from your portal.

From order to payout

  1. Create the session

    One API call per order, with your own reference.

  2. Your customer pays

    Hosted checkout, card and 3-D Secure.

  3. Receive the result

    Signed webhook, status in the portal, payout.

A checkout that adapts to your e-commerce

Hosted sessions to move fast, a direct API for full control — both accept Visa, Mastercard and Maroc Pay.

E-commerce stores

A cart that closes without leaving your brand

The checkout session carries your colours and your logo; the customer goes from cart to payment without a break. The confirmation webhook triggers order preparation — stock only moves on a successful payment.

Bookings & ticketing

Hold the seat while the payment happens

A time-limited payment session matches a reservation that expires: if the customer doesn't pay in time, the seat frees up on its own. Idempotency guarantees a double click never charges twice.

Platforms & marketplaces

The direct API for a fully custom flow

Your payment funnel belongs to you end to end: the Checkout API exposes creation, confirmation and status for every payment, and your webhooks orchestrate what follows — invoicing, delivery, accounting.

Frequently asked questions about online payments

Which payment methods can my customers use?

By default: Visa, Mastercard and Maroc Pay. Other methods can be enabled on request with the team, depending on your business.

Is 3-D Secure mandatory on my payments?

Card payments go through 3-D Secure authentication: the cardholder confirms with their bank, which shields the merchant from most unpaid orders and disputes.

What happens if the customer closes the page mid-payment?

The session expires on its own after its time limit, and its status stays readable through the API and the portal. Nothing is charged on an unfinished session; the customer can start again with a new one.

How does my system know a payment succeeded?

Two complementary channels: the customer's redirect to your confirmation page, and above all the signed webhook sent to your server — that is what should trigger fulfilment. The HMAC signature guarantees it really comes from ChariPay.

Want to see Online payments in action?

Tell us about your business — our team will walk you through the product on a real-world case.