diff --git a/classes/gateways/gateway-paypal.php b/classes/gateways/gateway-paypal.php index 807539a61a3..f377d471f2e 100644 --- a/classes/gateways/gateway-paypal.php +++ b/classes/gateways/gateway-paypal.php @@ -134,7 +134,7 @@ class woocommerce_paypal extends woocommerce_payment_gateway { $paypal_adr = $this->liveurl . '?'; endif; - if ($this->debug=='yes') $woocommerce->log->add( 'paypal', 'Generating payment form for order #' . $order_id . '. Notify URL: ' . trailingslashit(get_bloginfo('wpurl')).'?paypalListener=paypal_standard_IPN'); + if ($this->debug=='yes') $woocommerce->log->add( 'paypal', 'Generating payment form for order #' . $order_id . '. Notify URL: ' . trailingslashit(home_url()).'?paypalListener=paypal_standard_IPN'); $shipping_name = explode(' ', $order->shipping_method); @@ -172,7 +172,7 @@ class woocommerce_paypal extends woocommerce_payment_gateway { 'custom' => $order_id, // IPN - 'notify_url' => trailingslashit(get_bloginfo('wpurl')).'?paypalListener=paypal_standard_IPN', + 'notify_url' => trailingslashit(home_url()).'?paypalListener=paypal_standard_IPN', // Address info 'first_name' => $order->billing_first_name,