home_url for IPN
This commit is contained in:
parent
0e69efaaff
commit
152fc4426e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue