Merge pull request #357 from IceToast/development
fix: 🐛 remove whitespaces before request of stripe payment_methods
This commit is contained in:
commit
74bdcffe75
|
@ -266,7 +266,7 @@ class PaymentController extends Controller
|
||||||
],
|
],
|
||||||
|
|
||||||
'mode' => 'payment',
|
'mode' => 'payment',
|
||||||
"payment_method_types" => str_getcsv(env('STRIPE_METHODS')),
|
"payment_method_types" => str_getcsv(str_replace(' ', '', env('STRIPE_METHODS'))),
|
||||||
'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'),
|
||||||
]);
|
]);
|
||||||
|
@ -522,7 +522,7 @@ class PaymentController extends Controller
|
||||||
->pricePerUnit($creditProduct->price);
|
->pricePerUnit($creditProduct->price);
|
||||||
|
|
||||||
$notes = [
|
$notes = [
|
||||||
__("Payment method") .": ". $payment->payment_method,
|
__("Payment method") . ": " . $payment->payment_method,
|
||||||
];
|
];
|
||||||
$notes = implode("<br>", $notes);
|
$notes = implode("<br>", $notes);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue