You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// we have an empty access token so there was a problem
269
+
$err.="<p class='alert alert-danger'>We were not able to gain an access token with SumUp. Please check your gateway configuration for correct URLs. You could also double check that your currency code matches the expected currency to be processed in your merchant account.</p>";
270
+
$idtoken="";
271
+
}
266
272
267
273
if ($testing == true) {
268
-
$test="<h1>You are in test mode - providing you are using test credentials in the payment module settings your card will not be charged.</h1>";
274
+
$test.="<h1>You are in test mode - providing you are using test credentials in the payment module settings your card will not be charged.</h1>";
269
275
} else {
270
276
$test="";
271
277
}
272
278
// new addition to prevent displaying the form if there is no checkout tokenid - this could be because the 'payments' scope has not been enabled
echo"<p class='alert alert-danger'>At the present time it is not possible to process your payment using SumUp. Please contact the site owner.</p>";
306
-
if ($testing == true) { echo"<p class='alert alert-warning'>Please double check that you have enabled the <i>payments</i> scope with SumUp"; }
313
+
if ($testing == true) { $err.="<p class='alert alert-warning'>Please double check that you have enabled the <i>payments</i> scope with SumUp"; echo$err; }
307
314
308
315
}
309
316
$abort = true; //Don't redirect to success page yet!
0 commit comments