mirror of
https://github.com/itflow-org/itflow
synced 2026-09-21 14:11:17 +00:00
Move payment provider post vars to a model to reduce repetition
This commit is contained in:
9
admin/post/payment_provider_model.php
Normal file
9
admin/post/payment_provider_model.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
|
||||
|
||||
$public_key = escapeSql($_POST['public_key']);
|
||||
$private_key = escapeSql($_POST['private_key']);
|
||||
$threshold = floatval($_POST['threshold']);
|
||||
$account = intval($_POST['account']);
|
||||
$expense_vendor = intval($_POST['expense_vendor']) ?? 0;
|
||||
$expense_category = intval($_POST['expense_category']) ?? 0;
|
||||
Reference in New Issue
Block a user