CRM-16808 paypal refactoring, fix enotice on generating url
[civicrm-core.git] / CRM / Core / Payment / PayPalImpl.php
index 6dd7432d89a2c2fc5c87864f13095f240bec8099..1bacf20c246219b250a15eef1bba5776bbbafd53 100644 (file)
@@ -638,6 +638,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
    *   - redirect_url (if set the browser will be redirected to this.
    */
   public function doPreApproval(&$params) {
+    $this->_component = $params['component'];
     $token = $this->setExpressCheckOut($params);
     return array(
       'pre_approval_parameters' => array('token' => $token),