home_url for IPN

This commit is contained in:
Mike Jolley 2011-11-18 12:36:02 +00:00
parent 0e69efaaff
commit 152fc4426e
1 changed files with 2 additions and 2 deletions

View File

@ -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,