Moyasar Payment Gateway - mada, Apple Pay, STC Pay | Moyasar Payment Provider Saudi Arabia
by Modvanta https://modvantaapps.tech/odoo-apps/payment-moyasar/$ 29.91

Accept mada, STC Pay and cards in Odoo with Moyasar
The Moyasar payment form opens on your Odoo checkout - embedded, in a pop-up or on Moyasar's hosted page - and Odoo confirms the order only after fetching the payment from Moyasar. Saved cards, refunds, a webhook you register in one click and a full API log.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
The module adds Moyasar as a payment provider on the standard Odoo payment framework, for the eCommerce checkout, portal invoices and payment links. Card, mada and STC Pay are separate Odoo payment methods; you choose the card networks the form accepts.
After Pay the Moyasar form takes the card or the STC Pay mobile number; 3-D Secure and the STC Pay code are handled by Moyasar. When the customer comes back - or when the webhook arrives - Odoo fetches the payment from Moyasar and confirms the order. Refunds go back to Moyasar from the normal Odoo refund button.
These screenshots were taken on Odoo 19 with a Saudi shop selling in SAR, in English and Arabic. The bench has no Moyasar account, so a local stand-in answered the Moyasar API in the shapes the module's tests use, and the payment form you see is that stand-in; on your shop Moyasar's own form appears in the same place.
Who it is for
Shops in Saudi Arabia Offer mada, STC Pay, Visa and Mastercard on the Odoo checkout, in Arabic or English. | Businesses billing by invoice Let customers pay invoices from the portal with Moyasar. | Teams handling refunds Refund from Odoo and read the Moyasar status, message and fee of every payment. |
Key features
Every screen below is the module running on Odoo 19.
Feature 1
Keys and webhook
Publishable and secret key, Test Connection, the webhook URL and shared secret, and a Register Webhook button that creates the webhook on your Moyasar account.

Feature 2
Form, card networks, wallets and refunds
Embedded form, pop-up or Moyasar hosted page, form version, statement descriptor, extra currencies, the card networks accepted (mada, Visa, Mastercard, American Express, UnionPay), Apple Pay label, countries and domain association file, Samsung Pay service ID, voiding same-day full refunds and API log retention.

Feature 3
Card, mada and STC Pay at the checkout
Each method is listed on the Odoo payment step, with the option to save the card. Prices here are in SAR.

Feature 4
Payment form on the checkout page
In embedded mode the form opens under the payment methods, with the accepted networks and the amount on the Pay button; in test mode a badge reminds you that no real money is charged. (On the bench a local stand-in draws the form.)

Feature 5
Order confirmed
Back from 3-D Secure, Odoo fetches the payment from Moyasar and confirms the order.

Feature 6
Arabic checkout with STC Pay
The same checkout in Arabic, right to left, with STC Pay selected.

Feature 7
Pay again with a saved card
A card saved at the first order is offered under Your payment methods on the next one.

Feature 8
Moyasar details on the transaction
Moyasar status, source, mobile or card number, message, response and authorization codes, RRN and fee on the Odoo transaction - here an STC Pay payment.

Feature 9
Payments and refunds
Card and STC Pay payments with a partial refund made from Odoo.

Feature 10
API log
Form callbacks, payment fetches, webhook set-up and refunds, with method, path, HTTP status, Moyasar status and message.

How it works, step by step
| 1 | Install the module Moyasar appears in Payment Providers with card, mada, Apple Pay and STC Pay. |
| 2 | Paste your Moyasar keys Enter the test publishable and secret keys and press Test Connection. |
| 3 | Register the webhook Click Register Webhook so payments are confirmed even when the customer closes the browser. |
| 4 | Choose the form and networks Embedded, pop-up or hosted page; the card networks to accept; saved cards. |
| 5 | Go live Switch to your live keys and enable the provider. |
Settings
All settings are on the Moyasar payment provider.
| Credentials | Publishable API key, secret API key, Test Connection. |
| Webhook | Webhook URL, shared secret, registered webhook ID, Register Webhook. |
| Payment form | Embedded, pop-up or Moyasar hosted page; form version; statement descriptor; extra currencies. |
| Card networks | mada, Visa, Mastercard, American Express, UnionPay. |
| Apple Pay and Samsung Pay | Apple Pay label, card countries, domain association file; Samsung Pay service ID. |
| Refunds and logs | Void same-day full refunds, keep the API log for a number of days. |
Frequently asked questions
Does it support mada and STC Pay?
Yes. mada and STC Pay are their own payment methods next to card, and you choose which card networks the form accepts.
Does it work in Arabic?
Yes. The Odoo checkout works in Arabic, right to left, with the Moyasar methods.
What if the customer closes the browser after paying?
Register the webhook: Moyasar then tells Odoo about the payment, and Odoo fetches it before confirming the order.
Can customers save their card?
Yes, when saving payment methods is allowed. The saved card is offered on the next order.
Can I refund from Odoo?
Yes, full and partial refunds from the Refund button of the payment.
Compatibility
Odoo 19 Community and Enterprise | Payments Standard Odoo payment providers | eCommerce Checkout, portal invoices, payment links | Moyasar Payments API and payment form |
Start taking mada and STC Pay payments with Moyasar
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, email support |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1867 |
| Technical Name |
mdv_payment_moyasar |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/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