Skip to content

Commit

Permalink
Update config.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIncognito85 authored Jan 22, 2022
1 parent 7b2fab2 commit a50f9a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Stripe/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use App\Stripe\Api\Entity\StripeUser;
use App\Stripe\Api\Stripe;
use App\Stripe\StripePaymentType;
use App\Stripe\StripePaymentBoard;

use function DI\add;
use function DI\autowire;
Expand All @@ -12,7 +13,7 @@
'auth.entity' => StripeUser::class,
'payments.type' => add(get(StripePaymentType::class)),
'csrf.except' => add(['stripe.webhook']),
'payment.boards' => add(get(StripePaymentType::class)),
'payment.boards' => add(get(StripePaymentBoard::class)),
Stripe::class => autowire()
->constructorParameter('endpointkey', $_ENV['STRIPE_ENDPOINT'] ?? null)
->constructorParameter('privateKey', $_ENV['STRIPE_SECRET'] ?? null)
Expand Down

0 comments on commit a50f9a1

Please sign in to comment.