test5
'YOUR-CLIENT-ID',
'app_secret' => 'cc_sk_classic_J7yBvhbQ9bDJyrIF3MoyzUEMO1kAZbsKXIvohTwnXJQG0SCHYz',
'code' => 'YOUR-AUTHORIZATION-CODE'
]);
$checkoutService = $sumup->getCheckoutService();
$checkoutResponse = $checkoutService->create($amount, $currency, $checkoutRef, $payToEmail);
$checkoutId = $checkoutResponse->getBody()->id;
// pass the $chekoutId to the front-end to be processed
} catch (\SumUp\Exceptions\SumUpAuthenticationException $e) {
echo 'Authentication error: ' . $e->getMessage();
} catch (\SumUp\Exceptions\SumUpResponseException $e) {
echo 'Response error: ' . $e->getMessage();
} catch(\SumUp\Exceptions\SumUpSDKException $e) {
echo 'SumUp SDK error: ' . $e->getMessage();
}
*/
?>