plugin system for payment gateway

This commit is contained in:
Ibnu Maksum
2022-09-16 11:05:33 +07:00
parent 0bd6c9e3c7
commit 061224b469
17 changed files with 598 additions and 815 deletions

View File

@ -207,7 +207,6 @@ switch ($action) {
$address = _post('address');
$tawkto = _post('tawkto');
$radius_mode = _post('radius_mode')*1;
$payment_gateway = _post('payment_gateway');
if ($company == '') {
r2(U . 'settings/app', 'e', $_L['All_field_is_required']);
} else {
@ -268,16 +267,6 @@ switch ($action) {
$d->save();
}
$d = ORM::for_table('tbl_appconfig')->where('setting', 'payment_gateway')->find_one();
if($d){
$d->value = $payment_gateway;
$d->save();
}else{
$d = ORM::for_table('tbl_appconfig')->create();
$d->setting = 'payment_gateway';
$d->value = $payment_gateway;
$d->save();
}
$d = ORM::for_table('tbl_appconfig')->where('setting', 'tawkto')->find_one();
if($d){