An implementation of the Odoo Payment Acquirer module for ADA-Pay payments. Configure you ADA-Pay account here
The ADA-Pay acquirer will convert the actual amount in the specific currency to an ADA amount (using CoinMarketCap API) and will create the payment-request using the ADA-Pay API, then will follow the payment acquirers flow.
- An ADA-Pay API Key from your account see documentation or getting started
- Register for CoinMarketCap to obtain the API Key from your account. You can read how in authentication documentation
- Set the webhook url from your odoo in your ADA-Pay
Dashboard -> Integrations tools -> Payment Settings
section, to get live events in your Odoo. The webhook url ishttps://odoo-base-url/payment/adapay/payment-events
.
Once the module is installed you can run the server as normal and follow these instructions for basic configuring AdaPay on your e-commerce site. Then you need to set several fields before activating the acquirer. This fields are required:
-
Credentials
sectionAdaPay APIKEY
: set your ADA-Pay API key.Payment Request expiration (minutes)
: it's recommended to set the default value. You can check the available minutes span in your ADA-Pay account, inDashboard -> Settings -> Payment expiration time
.
-
Configuration
sectionConversion provider
: currently only CoinMarket provider is supported.Api-Key
: your CoinMarket API Key.
You can enable the using of webhook in the Credentials
section.
If the field Use WebHook
is activated, you will receive live notifications from ADA-Pay in the https://odoo-base-url/payment/adapay/payment-events
endpoint, every time the payment change its status.
Otherwise the module will use the ADA-Pay API to update the payment status every time the client needs (in payment processing page) and there is also a scheduled action to update often the payment using the ADA-Pay API in background.
- Advanced: You can configure the frecuency, disable the action, etc in
Scheduled Actions
menu, looking for theUpdate payments status from AdaPay
item.
This module was tested in Odoo 14
- Create new project in Odoo.sh:
- link to github
- add subscription
- use Odoo version 14.0
- deploy
- Once deployed and pass all Test --> Connect to instance
- From Applications install:
- Accounting
- eCommerce
- ADA pay
- Access Accountng —> Configuration —> Payment Acquirers —> ADA Pay
- configure ADAPay API KEY
- payment journal as Bank
- Coinmarket API KEI
- enable as Test Mode
- From Website app —> Go TO WEBSITE
- make a purchase
- pay with test ADA
- see confirmation screen at the end of the process