MyPay
Accept Libyan Dinar (LYD) payments in Odoo 18 through MyPay hosted checkout — with local bank and wallet gateways, staff-assisted payment, and reliable confirmation.
Features
- Hosted checkout — redirect customers to MyPay’s secure payment page.
- Local gateways — pre-select a gateway via MyPay aliases (no need to pick again on MyPay when Auto-Submit is used).
- Staff pay on behalf — from a posted customer invoice, open Pay via MyPay, choose a gateway, enter a Libyan mobile, and complete payment with the customer present.
- Reliable confirmation — Payment Status enquiry on return, optional signed webhooks, and a scheduled job for closed browsers / late success.
- Point of Sale — companion module
pos_mypayfor online POS payment (QR / hosted link).
Supported gateways
| Alias | Method |
|---|---|
moamalat | Banking card |
masrafi-pay | Masrafi Pay |
yasr-pay | Yasr Pay |
sahary-pay | Sahary Pay |
edfali | Edfali |
sadad | SADAD |
mobicash | Mobicash |
prepaid-card | Prepaid card (optional; must be enabled on your MyPay account) |
Generic MyPay leaves gateway selection on the MyPay page. Selecting a gateway method sends payment_gateway with the matching alias.
How payment is confirmed
- Payment Status — Odoo calls MyPay after return/cancel (no public HTTPS required).
- Cron — re-checks pending (and recently canceled) transactions if the shopper closed the browser.
- Webhook — optional faster confirmation when a public HTTPS URL is available.
Setup
- Install MyPay from Apps.
- Open Invoicing / Accounting → Configuration → Payment Providers → MyPay.
- Enter Client ID and Secret ID from the MyPay merchant dashboard.
- Set the provider to Test (sandbox) or Enabled (production).
- (Optional) Configure webhook secret + public HTTPS URL for inbound webhooks.
- For staff-assisted payments: open a posted customer invoice → Pay via MyPay → choose gateway + Libyan phone (
09xxxxxxxx).
Requirements & limits
- Odoo 18.0
- Currency: LYD only
- No refund API — handle refunds manually in Odoo and the MyPay dashboard
- No card tokenization / saved payment methods
الميزات
- دفع مستضاف — توجيه العميل إلى صفحة MyPay الآمنة.
- بوابات محلية — اختيار بوابة مسبقاً عبر gateway aliases (مع الهاتف الليبي يمكن تجاوز صفحة كل البوابات).
- دفع الموظف نيابة عن العميل — من فاتورة مرحّلة: الدفع عبر MyPay → اختيار البوابة + رقم جوال ليبي → إتمام الدفع مع حضور العميل.
- تأكيد موثوق — استعلام Payment Status، وWebhook اختياري، ومهمة مجدولة عند إغلاق المتصفح.
- نقطة البيع — وحدة مرافقة
pos_mypayللدفع أونلاين من الـ POS.
البوابات المدعومة
| Alias | الوسيلة |
|---|---|
moamalat | بطاقة مصرفية |
masrafi-pay | مصرفي باي |
yasr-pay | ياسر باي |
sahary-pay | صحاري باي |
edfali | إدفالي |
sadad | سداد |
mobicash | موبي كاش |
prepaid-card | بطاقة مسبقة الدفع (اختيارية؛ تتطلب تفعيل الحساب) |
التثبيت
- ثبّت MyPay من التطبيقات.
- افتح الفوترة / المحاسبة ← الإعدادات ← مزودو الدفع ← MyPay.
- أدخل معرف العميل والمفتاح السري.
- اضبط الحالة على اختبار أو مفعّل.
- (اختياري) اضبط الويب هوك عند توفر HTTPS عام.
- لدفع الموظف: فاتورة مرحّلة → الدفع عبر MyPay → بوابة + هاتف
09xxxxxxxx.
المتطلبات والحدود
- أودو 18.0
- العملة: LYD فقط
- لا يوجد API للاسترداد — عالجه يدوياً في أودو ولوحة MyPay
- لا يوجد حفظ بطاقات / tokenization
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1050 |
| Technical Name |
payment_mypay |
| License | LGPL-3 |
| Website | https://mypay.ly |
Please log in to comment on this module