/** * Get SignUp url * * @param string $returnUrl Return url * * @return string */ public function getSignUpUrl($returnUrl) { $urlParams = array('partnerId' => static::PARTNER_ID, 'productIntentID' => 'addipmt', 'countryCode' => \XLite\Core\Config::getInstance()->Company->location_country, 'displayMode' => 'minibrowser', 'integrationType' => 'F', 'subIntegrationType' => 'S', 'permissionNeeded' => 'EXPRESS_CHECKOUT,REFUND,AUTH_CAPTURE', 'returnToPartnerUrl' => urlencode($returnUrl), 'receiveCredentials' => 'TRUE', 'showPermissions' => 'FALSE', 'productSelectionNeeded' => 'FALSE', 'merchantId' => 'TEST0001', 'partnerLogoUrl' => urlencode(\XLite\Module\CDev\Paypal\Main::getSignUpLogo())); return 'https://www.paypal.com/webapps/merchantboarding/webflow/externalpartnerflow' . '?&' . http_build_query($urlParams); }