
Refund, capture, void and re-check Amazon Payment Services payments from Odoo, without opening the APS dashboard.
Amazon Payment Services | APS | PayFort | Refunds | Authorize and capture | Void | Check status | SHA-256 / SHA-512 | mada | KNET | NAPS | Tabby | Tamara | Odoo 19
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Odoo 19 ships a basic Amazon Payment Services provider: the customer is sent to the APS hosted checkout and Odoo marks the order paid when APS answers. That is where it stops. There is no refund button, no authorize-now-capture-later, no way to ask APS what happened to a payment, and the notification only works if APS posts a form, while the current APS docs describe JSON notifications. This module builds on that provider. Refunds, captures and voids go from the payment in Odoo to the APS payment API, every answer is checked against your SHA response phrase, and a status check every 15 minutes picks up payments whose notification never arrived. You keep the same provider record and the same credentials.
| Refunds from Odoo: full or partial, as many times as the captured amount allows; each refund carries its own reference, so a declined refund can be sent again | |
| Authorize now, capture later: tick "Capture Amount Manually": checkout sends AUTHORIZATION, then you capture all of it or part of it, or void the rest | |
| Check Status on APS: a button on the payment and a scheduled check read the real state back from APS, with the authorized, captured and refunded amounts | |
| SHA-256 or SHA-512: pick the SHA type your APS account uses; requests are signed with the request phrase and every answer and notification is checked with the response phrase | |
| JSON and form notifications: transaction feedback and notification feedback are both accepted; a wrong signature gets HTTP 403 and changes nothing | |
| Local payment options: mada, KNET, NAPS, Tabby and Tamara are linked to the provider; Odoo always sends PURCHASE for them because APS does not take AUTHORIZATION there | |
| Arabic or English page: the APS page follows the customer's language, or you fix it to Arabic or English | |
| Dashboard actions: a capture or void you make in the APS dashboard updates the payment in Odoo | |
| Test Connection: checks the merchant identifier, access code and both SHA phrases without charging anything, and tells you which value is wrong | |
| API log: every call and notification with its APS status and response code; access code, card number and customer contact details are masked |
Who it is for
SHOPS IN SAUDI ARABIA AND THE UAE Take mada, Visa, Mastercard and Amex through your APS contract and refund from Odoo. | MADE-TO-ORDER AND B2B Authorize when the order comes in and capture what you actually ship. | KUWAIT, QATAR, EGYPT KNET, NAPS and local cards on the hosted page, in Arabic or English. |
What it adds to Odoo 19
| Need | Odoo 19 core | With this module |
| Hosted checkout (PURCHASE) | Yes | Yes, with order description and customer name |
| Refunds | No | Full and partial, from the payment |
| Authorize and capture later | No | AUTHORIZATION, partial capture, void |
| Status check | No | Button and a check every 15 minutes |
| SHA-512 accounts | No (SHA-256 only) | SHA-256 or SHA-512 |
| JSON notifications | Form posts only | JSON and form |
See it in Odoo
Credentials
The core APS fields plus the SHA type, the notification and redirection URLs to copy, and Test Connection.

Payment page options
Page language, customer name, how long to keep the API log, and where to paste the URLs in the APS dashboard.

Payment methods
Cards plus mada, KNET, NAPS, Tabby and Tamara on the same provider.

At checkout
A payment link in AED. The APS hosted page itself opens on APS's site, so this screenshot shows the Odoo side only.

A mada payment
Confirmed by a signed notification, with the Fort ID, the payment option, the masked card and the APS response code.

Authorized, partly captured
3,200 AED authorized; 2,000 AED captured from Odoo as a child transaction, the rest still open.

Status read back from APS
A pending payment confirmed by Check Status, with the authorized, captured and refunded amounts.

A declined card
The APS status, response code and message are kept on the payment.

Transactions
APS payments, a partial capture and a partial refund of 500 AED.

API log
Notifications, the capture, the refund, the status check and the connection test. A forged notification was refused with 403.

How it works
1 | Install Odoo installs the core Amazon Payment Services provider with it. |
2 | Paste your credentials APS dashboard, Integration Settings, Security Settings: merchant identifier, access code, SHA request and response phrases and the SHA type. Press Test Connection. |
3 | Set the notification URL Copy the APS Notification URL from Odoo into Technical Settings as the Direct Transaction Feedback URL and the Notification URL. |
4 | Try it in sandbox Pay with an APS test card while the provider is in Test mode, refund it from the payment, then switch the provider to Enabled. |
Settings
| Credentials: merchant identifier, access code, SHA request and response phrases (administrators only), SHA type | |
| Payment page: language (customer, Arabic or English), send the customer name | |
| Capture: immediate, or manual from Odoo (cards only) | |
| API log: how many days to keep it |
Questions
Does this replace the Odoo provider?
No. It adds to it. Your existing Amazon Payment Services provider and its payments stay as they are.
Do card numbers reach my Odoo server?
No. Customers type them on the APS page. Odoo only gets the masked number APS sends back.
Can I refund a mada payment?
APS documents refunds for any captured payment. Odoo's own mada payment method has refunds switched off by default, so turn it on under Payment Methods, mada, if your APS account refunds mada.
Why can't I capture manually with mada?
APS says mada and the local methods only take immediate payment. Use a second APS provider with cards only for authorize-and-capture, as in the screenshots.
Is there a monthly fee?
No. You pay once for the module. APS bills you under your own contract.
Compatibility
Odoo 19 Community and Enterprise. Needs the Payment and Invoicing apps and the core Amazon Payment Services provider (installed with it). Works with eCommerce, the customer portal and payment links. Built on the public APS documentation and tested with recorded answers.
Questions before you buy?
Write to modvantaapps@gmail.com. We answer on working days, usually within one day.
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