From babc652ce97bc82109b8136937eba84294c8192d Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 9 May 2024 15:50:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PayPal=20webhooks:=20=E9=80=80=E6=AC=BE?= =?UTF-8?q?=20invoice=20number?= 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 46a5ed42..99a528bf 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -658,6 +658,7 @@ class Index extends CI_Controller { $post_data->mc_fee = $post_data->resource->transaction_fee->value; break; case 'PAYMENT.SALE.REFUNDED': + $pn_invoice = $post_data->resource->invoice_number; $pn_payment_status = 'Refunded'; $pn_mc_gross = '-' . $post_data->resource->amount->total; $post_data->parent_txn_id = $post_data->resource->sale_id;