Payment Info form submission

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Hello,

I'm in the process of developing a payment plugin for the Paymill payment gateway. Part of this involves generating a token through a javascript api and then submitting the form via javascript. I'm having issues with this in the latest version of nopcommerce(3.0)

my problem is that submitting the form via javascript, it is  not hitting the proper action on the controller. Here's the javascript code I'm successfully  using to cause a form submission.

                    var form = $(".payment-info-next-step-button").closest('form');
                    form.submit();

When this submits the form it seems to simply hit the "PaymentInfo" action again, instead of the "EnterPaymentInfo" action. This seemed to work fine on the plugin I had written for a previous version 2.4. Can someone provide a little insight on what I might need to do to get this working?

Thanks,
10 years ago
disregard this, I figured it out. Was a mere matter of me copying and pasting the wrong bit of javascript :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.