tripay pg and list channels

This commit is contained in:
Ibnu Maksum
2022-09-07 14:44:04 +07:00
parent 41aa9f74ea
commit 8b7001b5ef
20 changed files with 759 additions and 36 deletions

View File

@ -203,6 +203,7 @@ switch ($action) {
$telegram_bot = _post('telegram_bot');
$telegram_target_id = _post('telegram_target_id');
$sms_url = _post('sms_url');
$wa_url = _post('wa_url');
$address = _post('address');
$payment_gateway = _post('payment_gateway');
if ($company == '') {
@ -254,6 +255,17 @@ switch ($action) {
$d->save();
}
$d = ORM::for_table('tbl_appconfig')->where('setting', 'wa_url')->find_one();
if($d){
$d->value = $wa_url;
$d->save();
}else{
$d = ORM::for_table('tbl_appconfig')->create();
$d->setting = 'wa_url';
$d->value = $wa_url;
$d->save();
}
$d = ORM::for_table('tbl_appconfig')->where('setting', 'payment_gateway')->find_one();
if($d){
$d->value = $payment_gateway;