payer_id = $this->input['PayerID']; return $payment; } protected function paymentUrl($gatewayTypeAlias) { $url = parent::paymentUrl($gatewayTypeAlias); // PayPal doesn't allow being run in an iframe so we need to open in new tab if ($this->account()->iframe_url) { return 'javascript:window.open("' . $url . '", "_blank")'; } else { return $url; } } }