Move payment provider post vars to a model to reduce repetition

This commit is contained in:
Wrongecho
2026-08-30 15:12:14 +01:00
parent 318eb7cf77
commit 5a925f8784
2 changed files with 12 additions and 12 deletions

View 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;