summaryrefslogtreecommitdiff
path: root/addons/payment_sips
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_sips
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_sips')
-rw-r--r--addons/payment_sips/data/payment_acquirer_data.xml3
-rw-r--r--addons/payment_sips/views/payment_sips_templates.xml1
2 files changed, 3 insertions, 1 deletions
diff --git a/addons/payment_sips/data/payment_acquirer_data.xml b/addons/payment_sips/data/payment_acquirer_data.xml
index dff9b3dcbf6..0491752f44e 100644
--- a/addons/payment_sips/data/payment_acquirer_data.xml
+++ b/addons/payment_sips/data/payment_acquirer_data.xml
@@ -7,7 +7,8 @@
<field name="image" type="base64" file="payment_sips/static/src/img/sips_icon.png"/>
<field name="provider">sips</field>
<field name="company_id" ref="base.main_company"/>
- <field name="view_template_id" ref="payment_sips.sips_acquirer_button"/>
+ <!-- <field name="view_template_id" ref="payment_sips.sips_acquirer_button"/> -->
+ <field name="view_template_id" ref="payment_sips.sips_form"/>
<field name="environment">test</field>
<field name="pre_msg"><![CDATA[
<p>You will be redirected to the Sips website after clicking on payment button.</p>]]></field>
diff --git a/addons/payment_sips/views/payment_sips_templates.xml b/addons/payment_sips/views/payment_sips_templates.xml
index 3e4b0e7f87a..3a890d96df3 100644
--- a/addons/payment_sips/views/payment_sips_templates.xml
+++ b/addons/payment_sips/views/payment_sips_templates.xml
@@ -17,6 +17,7 @@
</template>
<template id="sips_form">
+ <input type="hidden" name="data_set" t-att-data-action-url="tx_url"/>
<input type="hidden" name="Data" t-att-value="Data"/>
<input type="hidden" name="InterfaceVersion" t-att-value="InterfaceVersion"/>
<input type="hidden" name="Seal" t-att-value="Seal"/>