-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 error posting a checkout request #19
Comments
Hi @rleo79, |
what does " You should write to [email protected] to be properly onboarded for this functionality." mean? Is there anything to be activated in the account as well? I am having that issue on test- and real accounts |
We were missing the payments scope.
We had to complete our onboarding with sumup offices by signing an
agreement where we stated the kind of products we could sell or not because
they have limitation of their license.
After that we could complete our development and we did not get the error
anymore.
Il giorno ven 7 mag 2021 alle ore 14:34 chrisreiter <
***@***.***> ha scritto:
… what does " You should write to ***@***.*** to be properly
onboarded for this functionality." mean? Is there anything to be activated
in the account as well? I am having that issue on test- and real accounts
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPMUKIORU6CZ3LZPOANRUDTMPM4FANCNFSM4J3BAPMQ>
.
|
try { This is my Rest-api code, I'm try to integrate Sum-up Online payment Integration in my Laravel project, but I'm getting error like this |
Hello everyone, I got the same issue, and i have added payments scope in my code. $sumup = new \SumUp\SumUp([ Thanks in Advance. |
you fill sumup contact form and enabling payment scope. then checkout API
works.
…On Tue, Jan 4, 2022 at 11:25 AM shahsagar1998 ***@***.***> wrote:
Hello everyone,
I got the same issue, and i have added payments scope in my code.
Please check and give me suggestion, how to fix this issue.
$sumup = new \SumUp\SumUp([
'app_id' => 'SUM_UP_APP_ID',
'app_secret' => 'SUM_UP_APP_SECRET',
'grant_type' => 'client_credentials',
'scopes' => ['payments', 'transactions.history', 'user.app-settings',
'user.profile_readonly'],
]);
$checkoutService = $sumup->getCheckoutService();
$checkoutResponse = $checkoutService->create($amount, $currency,
$checkoutRef, $payToEmail);
$checkoutId = $checkoutResponse->getBody()->id;
Thanks in Advance.
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWAIQYT6663TAUBTTROPCCDUUKDVVANCNFSM4J3BAPMQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I really cannot figure out how to create a checkout request
`
try {
$sumup = new \SumUp\SumUp([
'app_id' => $app_config['app_id'],
'app_secret' => $app_config['app_secret'],
'grant_type' => 'client_credentials',
'scopes' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly'],
'use_guzzlehttp_over_curl' => $app_config['force_guzzle'],
]);
} catch (\SumUp\Exceptions\SumUpValidationException $e) {
die(stampa_errore('Validation error: ' . $e->getMessage() . ' - Code: '.$e->getCode()));
} catch (\SumUp\Exceptions\SumUpArgumentException $e) {
die(stampa_errore('Argument error: ' . $e->getMessage() . ' - Code: '.$e->getCode()));
} catch (\SumUp\Exceptions\SumUpAuthenticationException $e) {
die(stampa_errore('Authentication error: ' . $e->getMessage() . ' - Code: '.$e->getCode()));
} catch (\SumUp\Exceptions\SumUpResponseException $e) {
die(stampa_errore('Response error: ' . $e->getMessage() . ' - Code: '.$e->getCode()));
} catch(\SumUp\Exceptions\SumUpSDKException $e) {
die(stampa_errore('SumUp SDK error message: ' . $e->getMessage() . ' - Code: '.$e->getCode()));
} catch(\SumUp\Exceptions\SumUpServerException $e) {
die(stampa_errore('SumUp server error message: ' . $e->getMessage() . ' - Code: '.$e->getCode()));
} catch (Exception $e){
die(stampa_errore('Si è verificato un problema: ' . $e->getMessage() . ' - Code: '.$e->getCode()));
}
`
I get a "Response error: request_not_allowed - Code: 403" exception.
I am sure that $accessToken has a value. So I cannot figure why it's not working.
The text was updated successfully, but these errors were encountered: