FIX REMOVED DUMMY
This commit is contained in:
parent
ff85bbb042
commit
19e67cbd57
@ -196,7 +196,6 @@ $routes->match(['get','post'],'/response','Payment::response/');
|
||||
$routes->get('/payment_failure', 'Payment::payment_failure');
|
||||
$routes->get('/payment_success','Payment::payment_success');
|
||||
$routes->match(['get','post'],'/subscription_renewal/(:any)','Payment::index/$1');
|
||||
$routes->get('dummy', 'Payment::dummy');
|
||||
|
||||
// $routes->group("api", function ($routes) {
|
||||
// // $routes->post("create_products/", "ApiIntegration::save_book_details");
|
||||
|
||||
@ -217,14 +217,15 @@ public function payment_success() {
|
||||
$db->table('invoiceitems')->insert($requestData);
|
||||
$model3 = new SubscriptionModel();
|
||||
$id_exist = $model3->where('customer_id',$customer_id)->first();
|
||||
if ($id_exist>0){
|
||||
if (count($id_exist)>0){
|
||||
$subscriptionData = [
|
||||
'scheme_id' =>3,
|
||||
'customer_id' => $customer_id,
|
||||
'invoice_id' => $invoice_id,
|
||||
'from_subscription'=>$fsubscription,
|
||||
'to_subscription'=>$tsubscription,
|
||||
'is_renew' => 'renewal'
|
||||
'is_renew' => 1,
|
||||
'business_id'=>2
|
||||
|
||||
];
|
||||
$db->table('subscription')->where('customer_id', $customer_id)->update($subscriptionData);
|
||||
@ -235,7 +236,8 @@ public function payment_success() {
|
||||
'invoice_id' => $invoice_id,
|
||||
'from_subscription'=>$fsubscription,
|
||||
'to_subscription'=>$tsubscription,
|
||||
'is_renew' =>0
|
||||
'is_renew' =>0,
|
||||
'business_id'=>2
|
||||
];
|
||||
$db->table('subscription')->insert($subscriptionData);
|
||||
}
|
||||
@ -274,20 +276,4 @@ public function generateSerialNumber($filtered_data, $financial_year) {
|
||||
return ['serial_number' => $serial_number, 'next_id' => $next_id_numeric];
|
||||
}
|
||||
|
||||
public function dummy(){
|
||||
$paramList["MID"] = 'VIJAYA69114768822289';
|
||||
$paramList["ORDER_ID"] = '63_6731c6eeb58fd';
|
||||
$paramList["CUST_ID"] = '63';
|
||||
$paramList["INDUSTRY_TYPE_ID"] = 'Retail105';
|
||||
$paramList["CHANNEL_ID"] = 'WEB';
|
||||
$paramList["TXN_AMOUNT"] = 1.00;
|
||||
$paramList["WEBSITE"] = 'DEFAULT';
|
||||
$paramList["CALLBACK_URL"] = (string) base_url('tresponse');
|
||||
|
||||
$checkSum = getChecksumFromArray($paramList, 'x%4%KwIyHW!P2&tF');
|
||||
print_r($paramList);
|
||||
echo "<br>";
|
||||
print_r($checkSum);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user