SaaS

Tari9: a peer-to-peer car rental marketplace in Morocco

Tari9 is a Moroccan marketplace where a private individual rents their car to another. It is my own product, and I am building the whole platform. Booking in four steps and card payment through CMI, Morocco's interbank card payment gateway, are built and in acceptance testing.

Project

Tari9, personal product

My role

Full design and development

Period

Since February 2026

Technologies

Laravel 13, Livewire 4, Flux, CMI payment gateway

Status

Personal product, in development

4 4

steps to book

2 2

safeguards against double booking

700 700 +

automated tests

Renting your car to a stranger

A rental between private individuals only holds if each side can rely on the other without knowing them. The renter wants a car that is really free on the dates shown, at the advertised price. The owner wants to know who they are handing their keys to. The platform has to guarantee both before payment.

What is built

The renter chooses their dates, sees the price breakdown, service fee and VAT included, then pays by bank card. Everything is in dirhams. The amount sent to the bank is the one shown on screen.

A booking that is not paid expires, and the dates become free again for others.

An owner will only publish a listing once their identity has been verified.

The interface is planned in French, Arabic and English, with right-to-left display for Arabic. Translating the screens is still to be done.

Three payment and booking problems

The signature CMI requires

CMI requires every payment request to be signed: a hash computed from the form fields, in a precise order. At the slightest difference, the transaction is refused. I aligned my calculation with CMI's official kit, field by field.

Two renters, one car, the same second

Two people can confirm the same car for the same dates one second apart. A lock stops the two requests going through together. And if a flaw remained in the code, a constraint set in the database would refuse the second one.

The return from the bank

After payment, the bank sends the customer back to Tari9. That return arrived without their session: the site no longer recognised them at the exact moment it had to confirm their booking. I solved it with a two-step redirect: the customer gets their session back, then their confirmation.

Where the project stands

The first of the eight planned milestones, booking and payment, is built and covered by over 700 automated tests. It is in acceptance testing. The next seven are planned. The site is not yet open to the public.

Frequently asked questions

How do you integrate CMI payment into a Laravel application?

You have to build the payment form, sign it using the algorithm in the merchant kit, then check the signature of the bank's response before confirming the order. Two points cost time: the order of the fields in the signature, and the customer's return to the site after payment.

How do you avoid double bookings on a marketplace?

By handling the problem at two levels. In the code, a lock lets requests through one after the other. In the database, a uniqueness constraint makes the duplicate impossible, even if the code gets it wrong.

You are launching a marketplace or adding CMI payment

Moroccan card payment, commissions and bookings without conflicts are the basis of a marketplace. I have already built them on Tari9.

A marketplace project?

Tell me who sells, who buys and how the money moves. I reply within 24 hours.

This site measures its traffic with Google Analytics, only if you accept.