This question has been flagged
4787 Views

Hi Guys

Please assist we are getting the error below when trying to add a payment Acquirer on odoo online.


Server Error:
We are not able to redirect you to the payment form. Error when compiling AST



<?xml version="1.0"?>

<t t-name="payment.default_acquirer_button">

  <form action="https://www.payfast.co.za/eng/process/" method="post" target="_self">

        <input type="hidden" name="amount" t-att-value="amount"/>

        <input type="hidden" name="currency" t-att-value="currency.name"/>

        <input type="hidden" name="cmd" value="_paynow"/>

        <input type="hidden" name="receiver" t-att-value="11324618"/>

        <input type="hidden" name="item_name" t-att-value="Unplugg Invoice Payment"/>

        <input type="hidden" name="item_description" value=""/>

        <input type="hidden" name="cancel_url" value="https://unplugg-it-solutions.odoo.com/shop/payment"/>

        

        <!-- submit -->

        <button type="submit" width="100px" t-att-class="submit_class">

            <img t-if="not submit_txt" src="https://www.payfast.co.za/images/buttons/light-small-paynow.png"/>

            <span t-if="submit_txt"><t t-esc="submit_txt"/> <span class="fa fa-long-arrow-right"/></span>

        </button>

    </form>

    </t>

    


Avatar
Discard