From 4a1a0fd6e1518dd8f68a0ddd507e0e4b35fbf55a Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 9 May 2024 15:53:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PayPal=20webhooks:=20=E9=80=80=E6=AC=BE?= =?UTF-8?q?=20currency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/controllers/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 99a528bf..189675f4 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -659,6 +659,7 @@ class Index extends CI_Controller { break; case 'PAYMENT.SALE.REFUNDED': $pn_invoice = $post_data->resource->invoice_number; + $pn_mc_currency = $post_data->resource->amount->currency; $pn_payment_status = 'Refunded'; $pn_mc_gross = '-' . $post_data->resource->amount->total; $post_data->parent_txn_id = $post_data->resource->sale_id;