Bug with WorldPay when using SSL/HTTPS
-
Our site is using HTTPS and forces all traffic that is HTTP to become HTTPS. We were experiencing an issue where completed WorldPay orders where not being updated in teh Jigoshop orders page and after investigation could see that it was providing the incorrect callback:
<input type="hidden" name="MC_callback" value="https://www.example.com?js-api=JS_Gateway_WorldPay" />
Even though everything in the settings is set up as https://. The fix for this is to update the file
/public_html/wp-content/plugins/jigoshop/gateways/worldpay.php
to change line 110 from:$this->notify_url = jigoshop_request_api::query_request('?js-api=JS_Gateway_WorldPay', false);
to
$this->notify_url = jigoshop_request_api::query_request('?js-api=JS_Gateway_WorldPay', is_ssl());
This sets the callback to check if the site uses https or not.
Thanks,
- The topic ‘Bug with WorldPay when using SSL/HTTPS’ is closed to new replies.