Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1421168374 | ||
|
|
600a054314 | ||
|
|
bc934a0745 | ||
|
|
c5cd74e03f | ||
|
|
9e2475f415 | ||
|
|
488aea8771 | ||
|
|
0f31982616 | ||
|
|
c32776ba60 | ||
|
|
43636e52e3 |
@@ -1,12 +1,12 @@
|
|||||||
# payment_btcpay
|
# BTCPay Server payment gateway for Odoo 16
|
||||||
# BTCPay Server payment gateway for Odoo 17.0
|
|
||||||
|
|
||||||
## This is the module to connect Odoo 17.0 and BTCPay
|
## This is the module to connect Odoo 16 and BTCPay Server
|
||||||
This module allows you to accept bitcoin (and other cryptocurrency) payments in your Odoo e-commerce store.
|
This module allows you to accept bitcoin (and other cryptocurrency) payments in your Odoo e-commerce store.
|
||||||

|

|
||||||
|
|
||||||
## Install the module
|
## 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)
|
* 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 `16.0` or downloaded a release tagged with version v16.x
|
||||||
* Place the `payment_btcpay` directory in your Odoo addons directory
|
* Place the `payment_btcpay` directory in your Odoo addons directory
|
||||||
* Install dependencies by running `pip install -r requirements.txt` (from inside the `payment_btcpay` directory)
|
* Install dependencies by running `pip install -r requirements.txt` (from inside the `payment_btcpay` directory)
|
||||||
* Restart Odoo
|
* Restart Odoo
|
||||||
@@ -33,15 +33,9 @@ In the BTCPay settings form, tab "Credentials":
|
|||||||
* Field Facade, keep default 'merchant'.
|
* Field Facade, keep default 'merchant'.
|
||||||
|
|
||||||
On the tab "Configuration":
|
On the tab "Configuration":
|
||||||
* Make sure field "Payment Journal" is set to "Bank", otherwise you can click the dropdown and click on the suggestion "Bank"
|
* Set field "Payment Journal" to "Bank", you can click the dropdown and click on the suggestion "Bank"
|
||||||
* Now you can **save** the settings
|
* Now you can **save** the settings
|
||||||
|
|
||||||
Check the payment method is enabled:
|
|
||||||
* Go to **Website** -> **Configuration** -> **Payment Methods**
|
|
||||||
* Make sure "Pay with Bitcoin / Lightning Network" is active
|
|
||||||
|
|
||||||
Congrats, all done. Do some testing to be sure all works.
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## How does the payment page look?
|
## How does the payment page look?
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ from . import models
|
|||||||
from odoo.addons.payment import setup_provider, reset_payment_provider
|
from odoo.addons.payment import setup_provider, reset_payment_provider
|
||||||
|
|
||||||
|
|
||||||
def post_init_hook(env):
|
def post_init_hook(cr, registry):
|
||||||
setup_provider(env, 'btcpay')
|
setup_provider(cr, registry, 'btcpay')
|
||||||
|
|
||||||
|
|
||||||
def uninstall_hook(env):
|
def uninstall_hook(cr, registry):
|
||||||
reset_payment_provider(env, 'btcpay')
|
reset_payment_provider(cr, registry, 'btcpay')
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#******************************************************************************
|
#******************************************************************************
|
||||||
# PAYMENT BTCPAY FOR ODOO
|
# PAYMENT BTCPAY FOR ODOO
|
||||||
#
|
#
|
||||||
# Copyright (C) 2024 Susanna Fort <susannafm@gmail.com>, ndeet
|
# Copyright (C) 2023 Susanna Fort <susannafm@gmail.com>
|
||||||
#
|
#
|
||||||
#******************************************************************************
|
#******************************************************************************
|
||||||
#
|
#
|
||||||
@@ -21,11 +21,11 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Payment Provider: BTCPay',
|
'name': 'Payment Provider: BTCPay',
|
||||||
'summary': 'This module integrates BTCPAY - pay with Bitcoin - with Odoo v17.0',
|
'summary': 'This module integrates BTCPAY - pay with Bitcoin - with Odoo v16.0',
|
||||||
'author': 'Vandekul',
|
'author': 'Vandekul',
|
||||||
'website': 'https://github.com/btcpayserver/odoo',
|
'website': 'https://github.com/btcpayserver/odoo',
|
||||||
'category': 'Accounting/Payment Providers',
|
'category': 'Accounting/Payment Providers',
|
||||||
'version': '17.0.1.0',
|
'version': '16.0.1.1',
|
||||||
'license': 'GPL-3',
|
'license': 'GPL-3',
|
||||||
'application': False,
|
'application': False,
|
||||||
'installable': True,
|
'installable': True,
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class BTCPayController(http.Controller):
|
|||||||
"redirectURL": redirect_url,
|
"redirectURL": redirect_url,
|
||||||
"notificationURL": notification_url,
|
"notificationURL": notification_url,
|
||||||
"extendedNotifications": True,
|
"extendedNotifications": True,
|
||||||
"buyer": {"email": data.get('email'),
|
"buyer": {"email": data.get('email') or 'noemailavailable@example.com',
|
||||||
"name": data.get('name'),
|
"name": data.get('name'),
|
||||||
"address1": data.get('street'),
|
"address1": data.get('street'),
|
||||||
"locality": data.get('city'),
|
"locality": data.get('city'),
|
||||||
|
|||||||
@@ -1,26 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<odoo noupdate="1">
|
<odoo noupdate="1">
|
||||||
|
|
||||||
<record id="payment_method_btcpay" model="payment.method">
|
|
||||||
<field name="name">Pay with Bitcoin / Lightning Network</field>
|
|
||||||
<field name="code">btcpay</field>
|
|
||||||
<field name="active">True</field>
|
|
||||||
<field name="image" type="base64" file="payment_btcpay/static/description/icon.png"/>
|
|
||||||
<field name="support_tokenization">False</field>
|
|
||||||
<field name="support_express_checkout">False</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="payment_provider_btcpay" model="payment.provider">
|
<record id="payment_provider_btcpay" model="payment.provider">
|
||||||
<field name="name">BTCPay payments</field>
|
<field name="name">BTCPay payments</field>
|
||||||
|
<field name="display_as">Pay with Bitcoin / Lightning Network</field>
|
||||||
<field name="code">btcpay</field>
|
<field name="code">btcpay</field>
|
||||||
<field name="image_128" type="base64" file="payment_btcpay/static/description/icon.png"/>
|
<field name="image_128" type="base64" file="payment_btcpay/static/description/icon.png"/>
|
||||||
<field name="redirect_form_view_id" ref="redirect_form"/>
|
|
||||||
<field name="module_id" ref="base.module_payment_btcpay"/>
|
<field name="module_id" ref="base.module_payment_btcpay"/>
|
||||||
<field name="payment_method_ids"
|
<field name="redirect_form_view_id" ref="redirect_form"/>
|
||||||
eval="[Command.set([
|
|
||||||
ref('payment_btcpay.payment_method_btcpay'),
|
|
||||||
])]"
|
|
||||||
/>
|
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 155 KiB |
@@ -4,7 +4,7 @@
|
|||||||
<section class="oe_container">
|
<section class="oe_container">
|
||||||
<div class="oe_row oe_spaced">
|
<div class="oe_row oe_spaced">
|
||||||
<h2 class="oe_slogan">BTCPay Gateway</h2>
|
<h2 class="oe_slogan">BTCPay Gateway</h2>
|
||||||
<h3 class="oe_slogan">This is the module to connect Odoo 17.0 and BTCPay</h3>
|
<h3 class="oe_slogan">This is the module to connect Odoo 16.0 and Btcpay</h3>
|
||||||
<div class="oe_span6">
|
<div class="oe_span6">
|
||||||
<div class="oe_bg_img">
|
<div class="oe_bg_img">
|
||||||
<img src="BTCPayServer_org.png" class="oe_picture oe_screenshot">
|
<img src="BTCPayServer_org.png" class="oe_picture oe_screenshot">
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
<field name="inherit_id" ref="payment.payment_provider_form"/>
|
<field name="inherit_id" ref="payment.payment_provider_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<group name="provider_credentials" position='inside'>
|
<group name="provider_credentials" position='inside'>
|
||||||
<group invisible="code != 'btcpay'">
|
<group attrs="{'invisible': [('code', '!=', 'btcpay')]}">
|
||||||
<field name="btcpay_location"/>
|
<field name="btcpay_location"/>
|
||||||
<field name="btcpay_pairingCode"/>
|
<field name="btcpay_pairingCode"/>
|
||||||
</group>
|
</group>
|
||||||
<group invisible="code != 'btcpay'">
|
<group attrs="{'invisible': [('code', '!=', 'btcpay')]}">
|
||||||
<field name="btcpay_token"/>
|
<field name="btcpay_token"/>
|
||||||
<field name="btcpay_privateKey"/>
|
<field name="btcpay_privateKey"/>
|
||||||
<field name="btcpay_facade"/>
|
<field name="btcpay_facade"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user