Reply To: Select menu condition and restriction + payment gateway

Home Forums Quform WordPress Select menu condition and restriction + payment gateway Reply To: Select menu condition and restriction + payment gateway

#28942

Goran
Participant

Hi Ally,
Moving custom message works beautifully!!
THANKS!

for the RBA

Finnaly I have code:


<code>
jQuery(function ($) {
    $('.quform-form-3').on('quform:successStart', function () {
        var $form = $(this);
        var form = document.createElement('form');
        form.action = 'https://uat.rba.hr/rba/enter';
        form.method = 'post';

        var fields = [
            { name: 'Version', value: '1' },
            { name: 'MerchantID', value: '12360951' },
            { name: 'TerminalID', value: '1832338' },
            { name: 'TotalAmount', value: $form.find('.quform-field-3_24').val() },
            { name: 'Currency', value: '980' },
            { name: 'Locale', value: 'en' },
            { name: 'OrderID', value: $form.find('.quform-field-3_272').val() },
            { name: 'PurchaseTime', value: kendo.toString(new Date(), 'yyMMddHHmmssZ') },
            { name: 'PurchaseDesc', value: 'description' }
       ];

        for (var i = 0; i < fields.length; i++) {
            var input = document.createElement('input');
            input.type = 'hidden';
            input.name = fields[i].name;
            input.value = fields[i].value;
            form.appendChild(input);
        }

        document.body.appendChild(form);
        form.submit();
    });
});
</code>

I am getting error ” wrong values”. Do you think my values are just fine, I mean does it sent as it should with code above.
(I am not allowed to place mID and tID public).
I will check with bank and get back to you.

  • This reply was modified 5 months, 2 weeks ago by  Goran.
  • This reply was modified 5 months, 2 weeks ago by  Goran.
Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy