online payments for card order

This commit is contained in:
2025-10-31 02:16:15 +05:00
parent 5d3ea6d787
commit 1873486d13
8 changed files with 104 additions and 34 deletions

View File

@@ -54,6 +54,18 @@ function module_exists(string $moduleName): bool
return modular()->moduleExists($moduleName);
}
/**
* Cast to string
*/
function string(mixed $value): string
{
if (! is_string($value)) {
throw new Exception('!!!Make it string!!!');
}
return $value;
}
/**
* Create an anonymous dynamic object with both properties and callable methods.
*