Payment setting frontend part 3 - added paypal

This commit is contained in:
Čarodej
2022-01-07 13:29:06 +01:00
parent 5d2071ea91
commit 6a957fa9fc
5 changed files with 86 additions and 14 deletions
@@ -17,17 +17,6 @@ class StorePaymentServiceCredentialsController
// Abort in demo mode
abort_if(is_demo(), 204, 'Done.');
// Try to get stripe account details
/*try {
if (!app()->runningUnitTests()) {
Stripe::make($request->input('secret'), '2020-03-02')
->account()
->details();
}
} catch (UnauthorizedException $e) {
throw new HttpException(401, $e->getMessage());
}*/
$options = [
'stripe' => [
'name' => 'allowed_stripe',