Moyasar Payments
by CRM Smiths https://crmsmiths.com/odoo-apps/payment-moyasar/?utm_source=odoo-store&utm_medium=listing&utm_campaign=cs_payment_moyasar$ 129.00
Moyasar Payments
Moyasar Payments (mada and Cards) for Odoo
Take mada and card payments in Odoo through Moyasar's hosted payment page: server-side verification, signed webhooks and refunds, with no card data on your server.
Independent integration by CRM Smiths, using the Moyasar API (v1). You need your own Moyasar account. Not affiliated with or endorsed by Moyasar.
What it does
Adds Moyasar as an Odoo payment provider. When a customer pays an order, invoice or payment link, Odoo creates a Moyasar invoice and sends the customer to Moyasar's hosted payment page; the card details are entered there, never in Odoo.
The return page, Moyasar's invoice callback and the webhooks are only signals: Odoo reads the invoice back from Moyasar and checks its reference, currency and amount (in halalas) before the payment is confirmed. Payment links expire after 24 hours, so an old link cannot be paid later.
Full and partial refunds from Odoo, checked against Moyasar's refunded total so nothing is refunded twice.
Screenshots

The Moyasar provider: masked secret key, the webhook with its shared secret and verification state, and the Test Connection and Register Webhook buttons.

Checkout: Moyasar offered next to your other payment methods; the customer pays on Moyasar's hosted page, so no card data reaches Odoo.

Payment transactions: paid, refunded, failed and pending Moyasar payments, each with its Moyasar invoice id.

Moyasar history: invoices created, verified invoice reads, refunds, webhook registration and verification, refused webhooks.
Supported versions
Odoo 17.0, 18.0, 19.0 and 20.0, Community edition. The same automated test suite (66 offline tests) passes on all four versions.
Depends on: Payment (payment); Python requests.
Setup
- Install the module. In Odoo: Invoicing/Accounting or Website > Configuration > Payment Providers > Moyasar.
- Enter the Secret Key from the Moyasar dashboard:
sk_test_...with the provider in Test Mode,sk_live_...when enabled. Click Test Connection. - Make sure
web.base.urlis the public https address of your Odoo, then click Register Webhook. If Moyasar asks to verify the webhook, Odoo answers the verification code by itself. - Publish the provider.
Features
| Feature | What it does |
|---|---|
| Hosted payment page | A Moyasar invoice per attempt (amount in the smallest unit, your reference in its metadata, 24-hour expiry); no card data in Odoo. |
| Verified payments | Return page, invoice callback and webhooks trigger a read of the invoice; id, reference, currency, amount and a matching paid payment are required. |
| Signed webhooks | Moyasar sends the shared secret Odoo registered; webhooks without it, or from the other mode (live/test), are refused. |
| Refunds | Full and partial, compared with Moyasar's refunded total before each one. |
| Key check | A live key on a provider in Test Mode, or a test key on an enabled one, is refused. |
| Scheduled check | Reads open invoices again for customers who closed the browser before coming back. |
| History | One row per Moyasar call and webhook, refused ones included; keys visible to administrators only and never logged. |
What it does not do
- Moyasar's embedded JavaScript card form, saved cards (tokens), payment intents and SADAD bills.
- Manual capture and void (Moyasar captures invoice payments).
- Apple Pay, Samsung Pay or STC Pay sessions in your own checkout page (the hosted page offers what your Moyasar account enables).
FAQ
Does Odoo see card numbers?
No. The customer pays on Moyasar's hosted page; Odoo only receives the invoice and payment status from the Moyasar API.
Which key do I use?
The secret key: sk_test_... in Test Mode, sk_live_... when the provider is enabled. A key of the wrong mode is refused before any call.
Can someone fake a Moyasar webhook?
A webhook without the shared secret is refused. One with it still changes nothing by itself: Odoo reads the invoice from Moyasar and follows that.
What if a customer opens an old payment link?
Links expire after 24 hours; an expired invoice cancels the Odoo transaction.
Support
Questions, problems or a feature you need: write to hello@crmsmiths.com. Please include your Odoo version and, for an error, the message shown and the matching row of the module's history.
Published by CRM Smiths. Independent integration; not affiliated with or endorsed by Moyasar.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1236 |
| Technical Name |
cs_payment_moyasar |
| License | OPL-1 |
| Website | https://crmsmiths.com/odoo-apps/payment-moyasar/?utm_source=odoo-store&utm_medium=listing&utm_campaign=cs_payment_moyasar |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Please log in to comment on this module