37 lines
2.0 KiB
XML
37 lines
2.0 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<odoo>
|
||
|
<data noupdate="1">
|
||
|
|
||
|
<template id="adyen_acquirer_button">
|
||
|
<form t-if="acquirer.adyen_merchant_account" t-att-action="tx_url" method="post" target="_self">
|
||
|
<input type="hidden" name="merchantReference" t-att-value="merchantReference"/>
|
||
|
<input type="hidden" name="paymentAmount" t-att-value="paymentAmount"/>
|
||
|
<input type="hidden" name="currencyCode" t-att-value="currencyCode"/>
|
||
|
<input type="hidden" name="shipBeforeDate" t-att-value="shipBeforeDate"/>
|
||
|
<input type="hidden" name="skinCode" t-att-value="skinCode"/>
|
||
|
<input type="hidden" name="merchantAccount" t-att-value="merchantAccount"/>
|
||
|
<input type="hidden" name="shopperLocale" t-att-value="shopperLocale"/>
|
||
|
<input type="hidden" name="sessionValidity" t-att-value="sessionValidity"/>
|
||
|
<input type="hidden" name="merchantSig" t-att-value="merchantSig"/>
|
||
|
<!-- URLs -->
|
||
|
<input type='hidden' name='resURL'
|
||
|
t-att-value="resURL"/>
|
||
|
<!-- custom -->
|
||
|
<input t-if="merchantReturnData" type='hidden' name='merchantReturnData'
|
||
|
t-att-value="merchantReturnData"/>
|
||
|
<!-- shopperEmail is not included for SHA-1. To avoid breaking compatibility,
|
||
|
include only if filled in -->
|
||
|
<input t-if="shopperEmail"
|
||
|
type='hidden' name='shopperEmail' t-att-value="shopperEmail"/>
|
||
|
<!-- submit -->
|
||
|
<button type="submit" width="100px"
|
||
|
t-att-class="submit_class">
|
||
|
<img t-if="not submit_txt" src="/payment_adyen/static/src/img/adyen_icon.png"/>
|
||
|
<span t-if="submit_txt"><t t-esc="submit_txt"/> <span class="fa fa-long-arrow-right"/></span>
|
||
|
</button>
|
||
|
</form>
|
||
|
</template>
|
||
|
|
||
|
</data>
|
||
|
</odoo>
|