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;