From 2a50bae00c1c0a948659e273e34baa2d1f352e57 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 22 Aug 2024 10:59:46 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20PayPal:=20wenhook=20,=20=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=A2=AB=E6=8B=92=E7=BB=9D=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/controllers/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 34b10ce0..69059181 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -642,6 +642,7 @@ class Index extends CI_Controller { if ( strpos($post_data->event_type, 'COMPLETED') === false && strpos($post_data->event_type, 'REFUNDED') === false + && strpos($post_data->event_type, 'PAYMENT.CAPTURE.DECLINED') === false ) { log_message('error',"paypal_webhook" . var_export($raw_post, 1)); return; @@ -702,6 +703,7 @@ class Index extends CI_Controller { break; case 'PAYMENT.CAPTURE.COMPLETED': + case 'PAYMENT.CAPTURE.DECLINED': $pn_invoice = $post_data->resource->invoice_id; $pn_custom = $post_data->resource->custom_id; $pn_mc_gross = $post_data->resource->amount->value;