diff --git a/app/Controllers/Payment.php b/app/Controllers/Payment.php index 696186d8..52fe000d 100644 --- a/app/Controllers/Payment.php +++ b/app/Controllers/Payment.php @@ -200,6 +200,7 @@ public function payment_success() { 'customer_id' => $customer_id, 'payment_status' => 'Paid', 'status'=>'Approved', + 'subtotal' => $amount, 'sub_total' => $amount, 'exact_total_amount' => $amount, 'grand_total' => $amount, @@ -245,6 +246,7 @@ public function payment_success() { 'invoice_id' =>$invoice_id['invoice_id'], 'product' => env('RENEWAL_SCHEME_ID'), 'quantity' =>1, + 'unit_price'=>$data['sub_total'], 'subtotal' => $data['sub_total'], 'created_on'=>$currentDate, 'isactive'=>1,