Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alexandru Tapuleasa

    (@talextech)

    Hi,

    Sorry to hear about the issues. I glanced at the comments on the other thread but it’s a back and forth. Can you give me a more exact way of replicating the issue? Do I need to install that LMS plugin and make a request?

    Thread Starter mingewang

    (@mingewang)

    HI

    Testing is bit complicated. You can install masteriyo LMS plugin, then enable standard paypal in the payments ( sanbox account should be fine)

    Then you publish a course with price, then try to buy it as guest user.

    The masteriyo seems will use ajax to create user, then redirect to paypal.

    the good response is something like this:

    {“result”:”success”,”redirect”:”https:\/\/www.paypal.com\/cgi-bin\/webscr ..”}

    with Advanced Google reCAPTCHA plugin enabled ( with some form enabled in setting ), the response become

    <div class="agr-recaptcha-wrapper">{"result":"success","redirect":"https:\/\/www.paypal.com\/cgi-bin\/webscr .."}
    
    

    It added the div block, which will cause the masteriyo javascript code threw error, I guess it expect pure json string.

    Plugin Author Alexandru Tapuleasa

    (@talextech)

    It’s odd as I really don’t see why it would end up in that ajax request. We only hook to form actions to print that. I have added to our ToDo list to check but since it’s probably a few hours of debugging to set up everything I really can’t give you any dates at the moment as we are busy with some other updates.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘unneeded tag added to json response (ajax)’ is closed to new replies.