Viewing 3 replies - 1 through 3 (of 3 total)
  • are you using HTTPS (i mean using SSL in your site)?? then the problem may be the return URL is a HTTP one and your site doesn’t allow it to access!.This was the issue in my case and i edited the line where it change URL in to http and solved it.

    engynazmy

    (@engynazmy)

    Hello,

    I’m facing exactly this same problem, I’m still developing my site on a localhost so no am not using HTTPS yet. It seems to be not working on my theme only as I’ve tried it on another default WP installation using ‘storefront’ theme & it returns correctly to “https://localhost/localfolder1/checkout/order-received/104/?key=wc_order_581e359340cf3” while in my theme it returns to “https://localhost/localfolder2/wc-api/SarkMigs?vpc_3DSXID=….”

    btw My site is bilingual using polylang.

    Any help is much appreciated. Thanks in advance.

    • This reply was modified 8 years ago by engynazmy.
    engynazmy

    (@engynazmy)

    Hi,

    I got this solved by changing the code in line 42
    from: $this->callback = str_replace( ‘https:’, ‘http:’, home_url( ‘/wc-api/SarkMigs’ ) );
    to: $this->callback = str_replace( ‘https:’, ‘http:’, get_site_url().’/wc-api/SarkMigs’);

    Hope this could be helpful for somebody,
    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Return URL error’ is closed to new replies.