Shopinvader Api Payment
Base module for Shopinvader payment services. It defines the provider-independent routers.
Table of contents
Usage
This addon is the core of the new Shopinvader API Payment addons suite. It defines basic services, which will be extended in two axes.
The first axe concerns the payable object. Here the methods should work with any abstract payable object (sale order, account invoice, …) but specific logic must be implemented in related addons (see shopinvader_api_payment_cart to pay sale orders for eg.)
The second axe concerns the payment provider. The idea is to develop one addon for each payment provider. Some of them are already available, see shopinvader_api_payment_sips, shopinvader_api_payment_stripe, shopinvader_api_payment_custom. In these addons we add the necessary logic to redirect to the payment provider payment website, the return url …
All payment routes are public. We must thus encode all sensitive info. The Payable object achieves this. In each service we ensure that the payable wasn’t tampered.
Concrete Usage
The idea to use this suite of addons is the following. Assume you have a valid payable (see addons of the first axe on how to get them, for eg. shopinvader_api_payment_cart on how to get the payable of the current cart).
1. Get all providers that are allowed to pay your payable object. You just need to call the GET route /payment/methods with your payable for this.
2. Once you chose the payment method you want to use, create the payment transaction calling the POST route /payment/transactions with your payable + some additional input info (the chosen provider, the frontend redirect url…). See the associated TransactionCreate Pydantic schema.
3. The following (and last) step depends on the chosen provider. See more info into the dedicated Shopinvader API payment addon. However, the idea is often the same: a redirect_form_html is returned and you should submit this HTML form to call the provider services.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Marie Lejeune <marie.lejeune@acsone.eu>
Stéphane Bidoul <stephane.bidoul@acsone.eu>
Maintainers
This module is part of the shopinvader/odoo-shopinvader-payment project on GitHub.
You are welcome to contribute.
Metadata
Release files for odoo-addon-shopinvader-api-payment 18.0.1.0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_addon_shopinvader_api_payment-18.0.1.0.0.3-py3-none-any.whl | Python 3 | none | any | Details for odoo_addon_shopinvader_api_payment-18.0.1.0.0.3-py3-none-any.whl |
Release files / odoo_addon_shopinvader_api_payment-18.0.1.0.0.3-py3-none-any.whl
| Download URL | odoo_addon_shopinvader_api_payment-18.0.1.0.0.3-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
982c2525153298215d12dd9c56b626b85295ba2c78a623eaf0e6d000b55fd8da
|
|
BLAKE2b-256 checksum How to use checksums |
4694542a4c757d60b36cef8326c2eb76dab4d8998bd1c005195475582262a6f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for odoo-addon-shopinvader-api-payment 18.0.1.0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.