Skip to content
All case studiesFoxmayn Pay

Foxmayn Pay: COD and card checkout for Algerian Shopify stores

Payment and shipping middleware for Algerian Shopify stores: cash on delivery with phone confirmation, Chargily cards and Yalidine delivery. Live at SARL Cosmekarn.

Foxmayn Pay — paiement et livraison pour Shopify en Algérie · In French, with captions
Transcript (in French)

Un soir, à vingt-trois heures, Lina commande une poêle en cuivre, depuis Sétif. La boutique tourne sur Shopify, avec Foxmayn Pay. Wilaya, commune : à domicile ou au bureau Yalidine, le prix s'affiche tout de suite. Avec les spatules en plus, la livraison est offerte. Elle paiera à la livraison. Ou par carte CIB et Edahabia, avec Chargily et la SATIM. Le lendemain, à neuf heures, sa commande attend dans la liste à appeler. Un appel : elle confirme. Le colis part aussitôt chez Yalidine. Le bordereau est prêt à imprimer. Puis vous suivez l'argent : encaissé par le transporteur, puis versé. Tout se passe dans votre Shopify. Vendre en ligne en Algérie, sans casse-tête.

The problem

Shopify does not ship with the payment and delivery methods that Algerian shoppers use. Most customers want to pay cash on delivery. Others want to pay online with a CIB or Edahabia card. Delivery goes through local carriers such as Yalidine, to the home or to a stop desk.

Cash on delivery has a cost. Parcels that nobody confirmed come back, and a returned parcel is paid for twice. So stores call each customer before shipping. That call usually lives in a notebook or a chat thread, separate from the order.

SARL Cosmekarn has made, imported and distributed cosmetics and personal-care products in Algeria since 2000, and sells online through its Shopify store. It needed all of this in one flow.

What we built

Foxmayn Pay is payment and shipping middleware for Shopify stores in Algeria. It has three parts.

  • A backend that handles payments, shipping and orders for several merchants.
  • An admin dashboard with merchants, transactions, shipping and reconciliation.
  • A Shopify app embedded in the Shopify admin, with a custom checkout extension.

It supports:

  • Cash on delivery.
  • Online card payment through Chargily (CIB and Edahabia).
  • Yalidine delivery, to the home or to a stop desk, plus manual shipments.
  • Confirmation of every cash-on-delivery order by a person, before the parcel is created.

How it works

For a card payment, the checkout creates a Shopify draft order and sends the customer to Chargily. When Chargily confirms the payment, Foxmayn Pay completes the draft order in Shopify. For cash on delivery, the order waits for a confirmation call. The system will not create a parcel for a cash-on-delivery order until a person has confirmed it.

The backend is TypeScript on Node 24 with Hono and Drizzle ORM over PostgreSQL. The server keeps no session state. One image runs the server and a scheduled worker, with Postgres behind it. Each merchant gets its own Shopify custom app, and each merchant's credentials are encrypted with AES-256-GCM using a separate nonce for every row. The embedded app uses React Router v7 and Prisma.

Gateways and carriers sit behind registries. This keeps each gateway and carrier in its own module.

Where it stands

Foxmayn Pay is live at SARL Cosmekarn and takes real orders. The merchant has been active since 26 July 2026, and the Yalidine provider is enabled and syncing for it.

By October 2026, Foxmayn Pay had carried thousands of orders from checkout to Shopify, most of them paid cash on delivery and the rest by card through Chargily. Cosmekarn is the first live merchant.

Direct SATIM and CIB payment is registered in the code, but it is not accepted live. Card payments run through Chargily.

The video above follows one order on our test store, from checkout to payout. Its customers, phone numbers, amounts and payouts are made up. The card and bank pages are stills, and the parcel was a test, then deleted at Yalidine.

What we learned

Test before launch, and audit. The backend has hundreds of automated tests, including end-to-end tests with the outside services mocked. Before launch, we ran a full security audit of the code and fixed its critical and high findings before real money depended on it.

Keep people in the loop. The confirmation call is a business rule. Putting it inside the system, in front of the parcel step, is what makes the rest safe to automate.

Next

More carriers, and more Algerian Shopify stores. If you run a Shopify store in Algeria, see our other Algerian products or read about Foxmayn Track, our delivery-note tracking, built from the system in production at Cosmekarn since August 2026.

All case studies

A desktop app for your Frappe and ERPNext sites. Ask in your own words, approve every change, and connect the AI apps you already use.
Read the case study
Delivery-note tracking for Algerian distributors and wholesalers: barcode scans checked by role, proof of delivery with a photo, offline work and a connector to your ERP. Built from the system made for Cosmekarn, which has run there since August 2026.
Read the case study

Still running on paper?

Tell us how your team works today, and we will show you what software can take off its hands.

Or email us at[email protected]