Odoo 18.0 compatibility.
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
# BTCPay Server payment gateway for Odoo 17
|
||||
# BTCPay Server payment gateway for Odoo 18
|
||||
|
||||
## This is the module to connect Odoo 17 and BTCPay Server
|
||||
## This is the module to connect Odoo 18 and BTCPay Server
|
||||
This module allows you to accept bitcoin (and other cryptocurrency) payments in your Odoo e-commerce store.
|
||||

|
||||

|
||||
|
||||
:::tip
|
||||
If you use Odoo 16 you can find the documentation [here](https://github.com/btcpayserver/odoo/blob/16.0/payment_btcpayserver/README.md).
|
||||
If you use Odoo 16 you can find the documentation [here](https://github.com/btcpayserver/odoo/blob/16.0/payment_btcpayserver/README.md) and for Odoo 17 [here](https://github.com/btcpayserver/odoo/blob/17.0/payment_btcpayserver/README.md).
|
||||
:::
|
||||
|
||||
## Install the module
|
||||
* Clone our [repository](https://github.com/btcpayserver/odoo) or download the .zip from the [releases page](https://github.com/btcpayserver/odoo/releases)
|
||||
* Make sure you are on branch `17.0` or downloaded a release tagged with version v17.x
|
||||
* Make sure you are on branch `18.0` or downloaded a release tagged with version v18.x
|
||||
* Place the `payment_btcpayserver` directory in your Odoo addons directory
|
||||
* Install dependencies by running `pip install -r requirements.txt` (from inside the `payment_btcpayserver` directory)
|
||||
* Restart Odoo
|
||||
@@ -46,13 +46,13 @@ Check the payment method is enabled:
|
||||
|
||||
Congrats, all done. Do some testing to be sure all works.
|
||||
|
||||

|
||||

|
||||
|
||||
## How does the payment page look?
|
||||
|
||||
During the checkout the customers will have the option to select the payment method "Pay with Bitcoin / Lightning Network". After selecting they will be redirected to the BTCPay checkout page as shown below.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Transaction BTCPay Details
|
||||
@@ -61,7 +61,7 @@ In transaction object, you will find more technical information about this metho
|
||||
* Invoice Id: the id of the invoice for which you want to fetch an event token
|
||||
* Transaction Status: That indicates state of transaction
|
||||
|
||||

|
||||

|
||||
|
||||
## Troubleshooting
|
||||
### The order and transaction status does not get updated to "paid"
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
|
||||
{
|
||||
'name': 'Payment Provider: BTCPay Server',
|
||||
'summary': 'This module integrates BTCPAY - pay with Bitcoin - with Odoo v17.0',
|
||||
'summary': 'This module integrates BTCPAY - pay with Bitcoin - with Odoo v18.0',
|
||||
'author': 'BTCPay Server team and contributors',
|
||||
'website': 'https://github.com/btcpayserver/odoo',
|
||||
'category': 'Accounting/Payment Providers',
|
||||
'version': '17.0.2.0',
|
||||
'version': '18.0.1.0',
|
||||
'license': 'GPL-3',
|
||||
'currency': 'USD',
|
||||
'application': False,
|
||||
|
||||
@@ -89,7 +89,6 @@ class PaymentTransaction(models.Model):
|
||||
"""
|
||||
tx = self._get_tx_from_notification_data(provider_code, notification_data)
|
||||
tx._process_notification_data(notification_data)
|
||||
tx._execute_callback()
|
||||
return tx
|
||||
|
||||
def _process_notification_data(self, notification_data):
|
||||
|
||||
Reference in New Issue
Block a user