From 4d2b442885287c5c11e8340e94d6f1bcac183ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E5=A4=A7=E7=99=BD?= Date: Tue, 14 Jan 2025 14:43:52 -0500 Subject: [PATCH] Update StripeALLInOne.php fix a bug that causes 400: https://support.stripe.com/questions/use-of-the-statement-descriptor-parameter-on-paymentintents-for-card-charges --- app/Payments/StripeALLInOne.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Payments/StripeALLInOne.php b/app/Payments/StripeALLInOne.php index 9c7e003..70e5b5b 100644 --- a/app/Payments/StripeALLInOne.php +++ b/app/Payments/StripeALLInOne.php @@ -66,7 +66,7 @@ class StripeALLInOne { 'confirm' => true, 'payment_method' => $stripePaymentMethod->id, 'automatic_payment_methods' => ['enabled' => true], - 'statement_descriptor' => 'sub-' . $order['user_id'] . '-' . substr($order['trade_no'], -8), + 'statement_descriptor_suffix' => 'sub-' . $order['user_id'] . '-' . substr($order['trade_no'], -8), 'description' => $this->config['description'], 'metadata' => [ 'user_id' => $order['user_id'],