summaryrefslogtreecommitdiff
path: root/addons/payment
diff options
context:
space:
mode:
authortbe-odoo <tbe@odoo.com>2017-08-18 13:25:16 +0200
committertbe-odoo <tbe@odoo.com>2017-08-29 17:11:23 +0200
commit80edbe5dff569683aeb3ca8d92d80221d2c8e977 (patch)
treec42764963191fa5c9517e735d5b0566bebd67041 /addons/payment
parent64ae5e2bc32eb99b6a6b470a9aed3803a8ecda0f (diff)
[ADD] payment: Added data for payment options
- Added the most used payment option (credit cards) in the world and assigned which payment acquirers can use them. - Added the form templates for each payment acquirer.
Diffstat (limited to 'addons/payment')
-rw-r--r--addons/payment/__manifest__.py1
-rw-r--r--addons/payment/data/payment_acquirer_data.xml65
-rw-r--r--addons/payment/data/payment_option_data.xml57
-rw-r--r--addons/payment/static/img/american_express.pngbin0 -> 7156 bytes
-rw-r--r--addons/payment/static/img/bancontact.pngbin0 -> 7075 bytes
-rw-r--r--addons/payment/static/img/cirrus.pngbin0 -> 6787 bytes
-rw-r--r--addons/payment/static/img/diners_club_intl.pngbin0 -> 8907 bytes
-rw-r--r--addons/payment/static/img/discover.pngbin0 -> 5880 bytes
-rw-r--r--addons/payment/static/img/jcb.pngbin0 -> 4096 bytes
-rw-r--r--addons/payment/static/img/maestro.pngbin0 -> 8014 bytes
-rw-r--r--addons/payment/static/img/mastercard.pngbin0 -> 8962 bytes
-rw-r--r--addons/payment/static/img/unionpay.pngbin0 -> 9536 bytes
-rw-r--r--addons/payment/static/img/visa.pngbin0 -> 4900 bytes
13 files changed, 122 insertions, 1 deletions
diff --git a/addons/payment/__manifest__.py b/addons/payment/__manifest__.py
index 0bc26ebfc9f..85a0a57fe61 100644
--- a/addons/payment/__manifest__.py
+++ b/addons/payment/__manifest__.py
@@ -9,6 +9,7 @@
'depends': ['account'],
'data': [
'data/account_data.xml',
+ 'data/payment_option_data.xml',
'data/payment_acquirer_data.xml',
'views/payment_views.xml',
'views/account_payment_views.xml',
diff --git a/addons/payment/data/payment_acquirer_data.xml b/addons/payment/data/payment_acquirer_data.xml
index 5908c6e5366..420afecbb35 100644
--- a/addons/payment/data/payment_acquirer_data.xml
+++ b/addons/payment/data/payment_acquirer_data.xml
@@ -32,6 +32,12 @@
<li><i class="fa fa-check"/>Payment Status Tracking</li>
</ul>
</field>
+ <!-- https://www.buckaroo-payments.com/products/payment-methods/ -->
+ <field name="payment_option_ids" eval='[(6, 0, [ref("payment.payment_option_cc_bancontact"),
+ ref("payment.payment_option_cc_maestro"),
+ ref("payment.payment_option_cc_mastercard"),
+ ref("payment.payment_option_cc_visa"),
+ ref("payment.payment_option_cc_american_express")])]'/>
</record>
<record id="payment_acquirer_ogone" model="payment.acquirer">
@@ -51,6 +57,11 @@
<li><i class="fa fa-check"/>Save Cards</li>
</ul>
</field>
+ <!-- https://payment-services.ingenico.com/~/media/files/130806_product_sheet_ingenico_collect_en.ashx?la=en -->
+ <field name="payment_option_ids" eval='[(6, 0, [ref("payment.payment_option_cc_bancontact"),
+ ref("payment.payment_option_cc_maestro"),
+ ref("payment.payment_option_cc_mastercard"),
+ ref("payment.payment_option_cc_visa")])]'/>
</record>
<record id="payment_acquirer_adyen" model="payment.acquirer">
@@ -67,6 +78,15 @@
<li><i class="fa fa-check"/>Payment Status Tracking</li>
</ul>
</field>
+ <!-- https://www.adyen.com/payment-methods -->
+ <field name="payment_option_ids" eval='[(6, 0, [ref("payment.payment_option_cc_bancontact"),
+ ref("payment.payment_option_cc_maestro"),
+ ref("payment.payment_option_cc_mastercard"),
+ ref("payment.payment_option_cc_visa"),
+ ref("payment.payment_option_cc_discover"),
+ ref("payment.payment_option_cc_diners_club_intl"),
+ ref("payment.payment_option_cc_jcb"),
+ ref("payment.payment_option_cc_unionpay")])]'/>
</record>
<record id="payment_acquirer_authorize" model="payment.acquirer">
@@ -87,6 +107,13 @@
<li><i class="fa fa-check"/>Manual Capture</li>
</ul>
</field>
+ <!-- https://www.authorize.net/solutions/merchantsolutions/onlinemerchantaccount/ -->
+ <field name="payment_option_ids" eval='[(6, 0, [ref("payment.payment_option_cc_maestro"),
+ ref("payment.payment_option_cc_mastercard"),
+ ref("payment.payment_option_cc_discover"),
+ ref("payment.payment_option_cc_diners_club_intl"),
+ ref("payment.payment_option_cc_jcb"),
+ ref("payment.payment_option_cc_visa")])]'/>
</record>
<record id="payment_acquirer_transfer" model="payment.acquirer">
@@ -117,6 +144,16 @@
<li><i class="fa fa-check"/>Payment Status Tracking</li>
</ul>
</field>
+ <!-- http://sips.worldline.com/en-us/home/features/payment-types-and-acquirers.html -->
+ <field name="payment_option_ids" eval='[(6, 0, [ref("payment.payment_option_cc_maestro"),
+ ref("payment.payment_option_cc_mastercard"),
+ ref("payment.payment_option_cc_discover"),
+ ref("payment.payment_option_cc_diners_club_intl"),
+ ref("payment.payment_option_cc_jcb"),
+ ref("payment.payment_option_cc_american_express"),
+ ref("payment.payment_option_cc_bancontact"),
+ ref("payment.payment_option_cc_unionpay"),
+ ref("payment.payment_option_cc_visa")])]'/>
</record>
<record id="payment_acquirer_paypal" model="payment.acquirer">
@@ -134,6 +171,15 @@
<li><i class="fa fa-check"/>Payment Status Tracking</li>
</ul>
</field>
+ <!-- https://www.paypal.com/us/selfhelp/article/Which-credit-cards-can-I-accept-with-PayPal-Merchant-Services-FAQ1525#business -->
+ <field name="payment_option_ids" eval='[(6, 0, [ref("payment.payment_option_cc_maestro"),
+ ref("payment.payment_option_cc_mastercard"),
+ ref("payment.payment_option_cc_discover"),
+ ref("payment.payment_option_cc_diners_club_intl"),
+ ref("payment.payment_option_cc_jcb"),
+ ref("payment.payment_option_cc_american_express"),
+ ref("payment.payment_option_cc_unionpay"),
+ ref("payment.payment_option_cc_visa")])]'/>
</record>
<record id="payment_acquirer_stripe" model="payment.acquirer">
@@ -150,7 +196,17 @@
<li><i class="fa fa-check"/>Payment Status Tracking</li>
</ul>
</field>
-
+ <!--
+ https://stripe.com/payments/payment-methods-guide
+ https://support.goteamup.com/hc/en-us/articles/115002089349-Which-cards-and-payment-types-can-I-accept-with-Stripe-
+ -->
+ <field name="payment_option_ids" eval='[(6, 0, [ref("payment.payment_option_cc_maestro"),
+ ref("payment.payment_option_cc_mastercard"),
+ ref("payment.payment_option_cc_discover"),
+ ref("payment.payment_option_cc_diners_club_intl"),
+ ref("payment.payment_option_cc_jcb"),
+ ref("payment.payment_option_cc_american_express"),
+ ref("payment.payment_option_cc_visa")])]'/>
</record>
<record id="payment_acquirer_custom" model="payment.acquirer">
@@ -182,6 +238,13 @@
<li><i class="fa fa-check"/>Payment Status Tracking</li>
</ul>
</field>
+ <!-- https://www.payumoney.com/selfcare.html?userType=seller
+ > Banks & Cards > What options do you have in the Credit Card payment?
+ -->
+ <field name="payment_option_ids" eval='[(6, 0, [ref("payment.payment_option_cc_maestro"),
+ ref("payment.payment_option_cc_mastercard"),
+ ref("payment.payment_option_cc_american_express"),
+ ref("payment.payment_option_cc_visa")])]'/>
</record>
</odoo>
diff --git a/addons/payment/data/payment_option_data.xml b/addons/payment/data/payment_option_data.xml
new file mode 100644
index 00000000000..49d351ddc83
--- /dev/null
+++ b/addons/payment/data/payment_option_data.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="payment_option_cc_visa" model="payment.option">
+ <field name="name">VISA</field>
+ <field name="image" type="base64" file="payment/static/img/visa.png"/>
+ </record>
+
+ <record id="payment_option_cc_american_express" model="payment.option">
+ <field name="name">American Express</field>
+ <field name="image" type="base64" file="payment/static/img/american_express.png"/>
+ </record>
+
+ <record id="payment_option_cc_cirrus" model="payment.option">
+ <field name="name">Cirrus</field>
+ <field name="image" type="base64" file="payment/static/img/cirrus.png"/>
+ </record>
+
+ <record id="payment_option_cc_diners_club_intl" model="payment.option">
+ <field name="name">Diners Club International</field>
+ <field name="image" type="base64" file="payment/static/img/diners_club_intl.png"/>
+ </record>
+
+ <record id="payment_option_cc_diners_club_intl" model="payment.option">
+ <field name="name">Diners Club International</field>
+ <field name="image" type="base64" file="payment/static/img/diners_club_intl.png"/>
+ </record>
+
+ <record id="payment_option_cc_discover" model="payment.option">
+ <field name="name">Discover</field>
+ <field name="image" type="base64" file="payment/static/img/discover.png"/>
+ </record>
+
+ <record id="payment_option_cc_jcb" model="payment.option">
+ <field name="name">JCB</field>
+ <field name="image" type="base64" file="payment/static/img/jcb.png"/>
+ </record>
+
+ <record id="payment_option_cc_maestro" model="payment.option">
+ <field name="name">Maestro</field>
+ <field name="image" type="base64" file="payment/static/img/maestro.png"/>
+ </record>
+
+ <record id="payment_option_cc_mastercard" model="payment.option">
+ <field name="name">MasterCard</field>
+ <field name="image" type="base64" file="payment/static/img/mastercard.png"/>
+ </record>
+
+ <record id="payment_option_cc_unionpay" model="payment.option">
+ <field name="name">UnionPay</field>
+ <field name="image" type="base64" file="payment/static/img/unionpay.png"/>
+ </record>
+
+ <record id="payment_option_cc_bancontact" model="payment.option">
+ <field name="name">Bancontact</field>
+ <field name="image" type="base64" file="payment/static/img/bancontact.png"/>
+ </record>
+</odoo> \ No newline at end of file
diff --git a/addons/payment/static/img/american_express.png b/addons/payment/static/img/american_express.png
new file mode 100644
index 00000000000..9f31d21ef20
--- /dev/null
+++ b/addons/payment/static/img/american_express.png
Binary files differ
diff --git a/addons/payment/static/img/bancontact.png b/addons/payment/static/img/bancontact.png
new file mode 100644
index 00000000000..7941a69cf64
--- /dev/null
+++ b/addons/payment/static/img/bancontact.png
Binary files differ
diff --git a/addons/payment/static/img/cirrus.png b/addons/payment/static/img/cirrus.png
new file mode 100644
index 00000000000..eb4b2aa81f6
--- /dev/null
+++ b/addons/payment/static/img/cirrus.png
Binary files differ
diff --git a/addons/payment/static/img/diners_club_intl.png b/addons/payment/static/img/diners_club_intl.png
new file mode 100644
index 00000000000..888860a140e
--- /dev/null
+++ b/addons/payment/static/img/diners_club_intl.png
Binary files differ
diff --git a/addons/payment/static/img/discover.png b/addons/payment/static/img/discover.png
new file mode 100644
index 00000000000..d9222265651
--- /dev/null
+++ b/addons/payment/static/img/discover.png
Binary files differ
diff --git a/addons/payment/static/img/jcb.png b/addons/payment/static/img/jcb.png
new file mode 100644
index 00000000000..f3e3c5bfb06
--- /dev/null
+++ b/addons/payment/static/img/jcb.png
Binary files differ
diff --git a/addons/payment/static/img/maestro.png b/addons/payment/static/img/maestro.png
new file mode 100644
index 00000000000..a0a6b328380
--- /dev/null
+++ b/addons/payment/static/img/maestro.png
Binary files differ
diff --git a/addons/payment/static/img/mastercard.png b/addons/payment/static/img/mastercard.png
new file mode 100644
index 00000000000..2572a33b373
--- /dev/null
+++ b/addons/payment/static/img/mastercard.png
Binary files differ
diff --git a/addons/payment/static/img/unionpay.png b/addons/payment/static/img/unionpay.png
new file mode 100644
index 00000000000..8d830c5f944
--- /dev/null
+++ b/addons/payment/static/img/unionpay.png
Binary files differ
diff --git a/addons/payment/static/img/visa.png b/addons/payment/static/img/visa.png
new file mode 100644
index 00000000000..58cfab08725
--- /dev/null
+++ b/addons/payment/static/img/visa.png
Binary files differ