REST Payment Provider
An add-on that needs API Connector Hub. One payment provider for any gateway with a hosted checkout page: you describe the create-payment request, the checkout link, the status words and the webhook in the provider form, and the customer pays on the gateway's page.
| Odoo | 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | API Connector Hub, Payment |
| Licence | OPL-1, 49 EUR |
| Tests | 40 automated, run on every version |
| Module | api_ |
The situation
A gateway that is not in the Odoo list needs its own payment module: one for the create-payment call, one more for the webhook, and a developer to keep both working. The shop owner who only wants to take cards through a regional gateway ends up waiting for that module, or sending customers a payment link by hand and marking the invoice paid when the money shows up.
REST Payment Provider is one provider for every gateway that works the same way: your server posts a payment, the answer holds a checkout address, the customer pays there, and the gateway tells you through a webhook or the customer comes back. You fill in the request as a JSON template, point to the fields of the answer, map the gateway's status words to Odoo states, and attach a ready-made server action to a hub webhook. The key stays on the hub connection, never on the provider.
What it adds
Getting started
Open Apps, clear the Apps filter, search for REST Payment Provider and click Activate. It needs API Connector Hub and Payment. The installed provider is in test mode, unpublished and has no connection, so nothing is offered to customers until you set it up.
Apps › api_hub_payment › Activate
Create a connection for the gateway in API Hub, then open Invoicing > Configuration > Payment Providers > REST Payment Provider and fill the REST Gateway tab. If the gateway sends webhooks, add a webhook to the connection and choose the server action REST Payment: process gateway notification. Press Test Session to see the first answer. Duplicate the provider for a second gateway.
API Hub › Webhooks, and Payment Providers › REST Payment Provider › REST Gateway
Customers pay on the gateway's page and come back to the standard payment status page. When a payment looks stuck, open the transaction and press Check Status, or API Calls to see each request the hub sent. Authorized payments use the standard Capture and Void buttons.
Fine print
Log
Will it fit our gateway?
Send us the create-payment example of your gateway and we will tell you how the templates would look.
Email odoo.expert.111@gmail.com
Also by Awins
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 1681 |
| Technical Name |
api_hub_payment |
| License | OPL-1 |
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