summaryrefslogtreecommitdiff
path: root/addons/payment_authorize
diff options
context:
space:
mode:
authortbe-odoo <tbe@odoo.com>2017-08-21 17:17:26 +0200
committertbe-odoo <tbe@odoo.com>2017-08-24 11:20:14 +0200
commitffcd95aaa99e9d76bb234da9845f00b7cb2fcbc4 (patch)
treecbcd69b23c958e1a87cef5d62e891abf973d49ae /addons/payment_authorize
parentfc17776f31f8e16e78d9383248e371f65b947d56 (diff)
[IMP] website_sale: Added S2S payment with new payment form
- Added the support of form payment. - Fixed payment form's errors not being displayed. - Fixed a crash when paying on e-commerce with a saved token. (dev commit, need to clean the code)
Diffstat (limited to 'addons/payment_authorize')
-rw-r--r--addons/payment_authorize/data/payment_acquirer_data.xml3
-rw-r--r--addons/payment_authorize/views/payment_authorize_templates.xml1
2 files changed, 3 insertions, 1 deletions
diff --git a/addons/payment_authorize/data/payment_acquirer_data.xml b/addons/payment_authorize/data/payment_acquirer_data.xml
index de2c3a4eb45..a9f8ddbf968 100644
--- a/addons/payment_authorize/data/payment_acquirer_data.xml
+++ b/addons/payment_authorize/data/payment_acquirer_data.xml
@@ -7,7 +7,8 @@
<field name="image" type="base64" file="payment_authorize/static/src/img/authorize_icon.png"/>
<field name="provider">authorize</field>
<field name="company_id" ref="base.main_company"/>
- <field name="view_template_id" ref="authorize_acquirer_button"/>
+ <!-- <field name="view_template_id" ref="authorize_acquirer_button"/> -->
+ <field name="view_template_id" ref="authorize_form"/>
<field name="registration_view_template_id" ref="authorize_s2s_form"/>
<field name="environment">test</field>
<field name="pre_msg"><![CDATA[
diff --git a/addons/payment_authorize/views/payment_authorize_templates.xml b/addons/payment_authorize/views/payment_authorize_templates.xml
index 0d201631d50..b4ea25275ee 100644
--- a/addons/payment_authorize/views/payment_authorize_templates.xml
+++ b/addons/payment_authorize/views/payment_authorize_templates.xml
@@ -48,6 +48,7 @@
</template>
<template id="authorize_form">
+ <input type="hidden" name="data_set" t-att-data-action-url="tx_url"/>
<input type='hidden' name='x_login' t-att-value='x_login'/>
<input type='hidden' name='x_fp_hash' t-att-value='x_fp_hash'/>
<input type='hidden' name='x_amount' t-att-value='x_amount'/>