mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
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
This commit is contained in:
parent
d57c3ca60d
commit
4d2b442885
@ -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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user