PrestaShop
PrestaShop 1.7+ module, hosted checkout sessions, module webhook controller, signed webhooks.
PrestaShop
Module in the lomiafrica/prestashop repository under lomi/: hosted checkout via POST /v1/checkout-sessions and verification via GET /v1/checkout-sessions/{id}.
Related products
- API keys: Dashboard → Developers → API keys
- Webhooks: Dashboard webhooks — subscribe to
PAYMENT_SUCCEEDEDandREFUND_COMPLETED - Hosted checkout: Checkout, where shoppers pay after redirect
- Subscriptions: Subscriptions, recurring products via checkout
Requirements
- PrestaShop 1.7+
- Shop currency EUR, USD, or XOF
Step 1, Get your lomi. API keys
- Sign in to dashboard.lomi.africa.
- Open Developers → API keys and copy your Test secret key.
Step 2, Install the module
- Open the
lomifolder in lomiafrica/prestashop; the archive root must belomi/and includelomi.php. - Zip only that folder (not a parent directory).
- Back office → Modules → Module Manager → Upload a module → install, then Enable if needed.
Detailed steps: PrestaShop module README
Step 3, Prepare currencies
- International → Localization → Currencies: activate EUR, USD, or XOF.
- Payment → Preferences (or Payment methods), allow lomi. for those currencies.
Step 4, Configure lomi.
Modules → lomi. → Configure
- Turn Test mode on.
- Paste Test secret key and Test webhook secret.
- Save.
Step 5, Check Setup health
The Setup health panel should show:
- API secret key: Configured
- Store currency: EUR, USD, or XOF
- API connection:
GET /mesucceeded
Copy the webhook URL from the panel into dashboard → Webhooks. Enable PAYMENT_SUCCEEDED and REFUND_COMPLETED.
Step 6, Run a test payment
- Add a product and go to checkout.
- Select Pay with lomi. and complete sandbox payment on hosted checkout.
- Confirm the PrestaShop order is validated.
Go live
Turn Test mode off, paste live keys and live webhook secret, then run one real payment.
Webhook URL
Point your lomi. dashboard webhook to:
https://YOUR-SHOP/index.php?fc=module&module=lomi&controller=webhook
Your shop may expose a friendly URL for the same controller, either works if it reaches the module front controller.
Payment flow
- Customer chooses Pay with lomi. → POST to validation controller creates the checkout session and redirects to lomi. Checkout.
- callback controller verifies the session (cart id + customer secure key), then validates the PrestaShop order when status is
completedand amount/currency match.
Source: validation.php, callback.php, webhook.php