Skip to main content
The user @Sagar Guhe had the right solution and the answer just wasn't edited to match his update.
Source Link

I know it's an old post, but there's a problem with the step 3. It should be like this:

var form = $('thisthis.agreementsForm'agreementsForm) ? $('thisthis.agreementsForm'agreementsForm) : $('paymentpayment.form'form);

I know it's an old post, but there's a problem with the step 3. It should be like this:

var form = $('this.agreementsForm') ? $('this.agreementsForm') : $('payment.form');

I know it's an old post, but there's a problem with the step 3. It should be like this:

var form = $(this.agreementsForm) ? $(this.agreementsForm) : $(payment.form);
Source Link
Alex
  • 31
  • 3

I know it's an old post, but there's a problem with the step 3. It should be like this:

var form = $('this.agreementsForm') ? $('this.agreementsForm') : $('payment.form');