|
|
|
@ -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;
|
|
|
|
|