From 52c4222736cabdcb977b831296f430aa0082916f Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Thu, 7 Jul 2022 18:05:49 +0800 Subject: [PATCH] update order currency --- beike/Shop/Services/PaymentService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beike/Shop/Services/PaymentService.php b/beike/Shop/Services/PaymentService.php index af191ec8..43562b96 100644 --- a/beike/Shop/Services/PaymentService.php +++ b/beike/Shop/Services/PaymentService.php @@ -98,7 +98,7 @@ class PaymentService $total = round($this->order->total, 2) * 100; $stripeChargeParameters = array( 'amount' => $total, - 'currency' => 'USD', + 'currency' => $this->order->currency_code, 'metadata' => array( 'orderId' => $this->order->id, ),