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.
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 “http://localhost/localfolder1/checkout/order-received/104/?key=wc_order_581e359340cf3” while in my theme it returns to “http://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 9 years, 5 months ago by
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,