Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function angelleye_get_merchant_onboarding_url($baseUrl) {
- try {
- $redirectUrl = OpenIdSession::getAuthorizationUrl(
- $this->rest_api_return_url, array('openid', 'profile', 'address', 'email', 'phone',
- 'https://uri.paypal.com/services/paypalattributes',
- 'https://uri.paypal.com/services/invoicing'), null, null, null, $this->angelleye_paypal_invoicing_getAuth()
- );
- if (!empty($redirectUrl)) {
- $this->angelleye_set_session('return_url', $baseUrl);
- header("Location: $redirectUrl");
- exit();
- }
- } catch (Exception $ex) {
- $baseUrl = $baseUrl . '&error=' . $ex->getMessage();
- header("Location: $baseUrl");
- exit();
- }
- }
Add Comment
Please, Sign In to add comment