Index: branches/5.1.x/units/gateways/gw_classes/paypal.php =================================================================== diff -u -N -r13465 -r13704 --- branches/5.1.x/units/gateways/gw_classes/paypal.php (.../paypal.php) (revision 13465) +++ branches/5.1.x/units/gateways/gw_classes/paypal.php (.../paypal.php) (revision 13704) @@ -1,6 +1,6 @@ getCountryIso( $item_data['BillingCountry'] ); - $ret['notify_url'] = $this->Application->BaseURL('/in-commerce').'gw_notify.php?sid='.$this->Application->GetSID().'&admin=1&order_id='.$item_data['OrderId']; + $ret['notify_url'] = $this->getNotificationUrl() . '?sid=' . $this->Application->GetSID() . '&admin=1&order_id=' . $item_data['OrderId']; + $ret['cmd'] = '_xclick'; // act as "Buy Now" PayPal button return $ret; } @@ -149,7 +150,7 @@ /* @var $cs_helper kCountryStatesHelper */ $ret['country'] = $cs_helper->getCountryIso( $item_data['BillingCountry'] ); - $ret['notify_url'] = $this->Application->BaseURL('/in-commerce').'gw_notify.php?sid='.$this->Application->GetSID().'&admin=1&order_id='.$item_data['OrderId'].'&payment_type_id='.$tag_params['payment_type_id']; + $ret['notify_url'] = $this->getNotificationUrl() . '?sid='.$this->Application->GetSID().'&admin=1&order_id='.$item_data['OrderId'].'&payment_type_id='.$tag_params['payment_type_id']; $ret['cmd'] = '_xclick-subscriptions'; // act as "Buy Now" PayPal button $real_ret = array();