Merge pull request #317 from linusxiong/patch-1

修复Stripe支付方式中导致400的小Bug
This commit is contained in:
Xboard 2025-01-16 12:48:58 +08:00 committed by GitHub
commit ea6a2d8fc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@ class StripeALLInOne {
'confirm' => true, 'confirm' => true,
'payment_method' => $stripePaymentMethod->id, 'payment_method' => $stripePaymentMethod->id,
'automatic_payment_methods' => ['enabled' => true], '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'], 'description' => $this->config['description'],
'metadata' => [ 'metadata' => [
'user_id' => $order['user_id'], 'user_id' => $order['user_id'],