|
|
@ -659,6 +659,7 @@ class Index extends CI_Controller {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'PAYMENT.SALE.REFUNDED':
|
|
|
|
case 'PAYMENT.SALE.REFUNDED':
|
|
|
|
$pn_invoice = $post_data->resource->invoice_number;
|
|
|
|
$pn_invoice = $post_data->resource->invoice_number;
|
|
|
|
|
|
|
|
$pn_mc_currency = $post_data->resource->amount->currency;
|
|
|
|
$pn_payment_status = 'Refunded';
|
|
|
|
$pn_payment_status = 'Refunded';
|
|
|
|
$pn_mc_gross = '-' . $post_data->resource->amount->total;
|
|
|
|
$pn_mc_gross = '-' . $post_data->resource->amount->total;
|
|
|
|
$post_data->parent_txn_id = $post_data->resource->sale_id;
|
|
|
|
$post_data->parent_txn_id = $post_data->resource->sale_id;
|
|
|
|