feat: ✨ Added Stripe_METHODS to .env variables -> csl of methods to support
This commit is contained in:
parent
17158ea20c
commit
06eedeef68
|
@ -27,6 +27,9 @@ PAYPAL_EMAIL=
|
||||||
#stripe details, you only need "test" for testing! you can do this by setting the APP_ENV to local
|
#stripe details, you only need "test" for testing! you can do this by setting the APP_ENV to local
|
||||||
STRIPE_TEST_SECRET=
|
STRIPE_TEST_SECRET=
|
||||||
STRIPE_SECRET=
|
STRIPE_SECRET=
|
||||||
|
#stripe payment methods, comma seperated list of methods you want to support:
|
||||||
|
#read into https://stripe.com/docs/payments/payment-methods/integration-options and/or https://stripe.com/docs/payments/payment-methods/overview
|
||||||
|
STRIPE_METHODS=
|
||||||
|
|
||||||
#set-up for extra discord verification
|
#set-up for extra discord verification
|
||||||
DISCORD_CLIENT_ID=
|
DISCORD_CLIENT_ID=
|
||||||
|
|
|
@ -261,9 +261,7 @@ class PaymentController extends Controller
|
||||||
],
|
],
|
||||||
|
|
||||||
'mode' => 'payment',
|
'mode' => 'payment',
|
||||||
'payment_intent_data' => [
|
"payment_method_types" => str_getcsv(env('STRIPE_METHODS')),
|
||||||
'capture_method' => 'manual',
|
|
||||||
],
|
|
||||||
'success_url' => route('payment.StripeSuccess', ['product' => $creditProduct->id]).'&session_id={CHECKOUT_SESSION_ID}',
|
'success_url' => route('payment.StripeSuccess', ['product' => $creditProduct->id]).'&session_id={CHECKOUT_SESSION_ID}',
|
||||||
'cancel_url' => route('payment.Cancel'),
|
'cancel_url' => route('payment.Cancel'),
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue