本文整理匯總了PHP中payment::up_sign方法的典型用法代碼示例。如果您正苦於以下問題:PHP payment::up_sign方法的具體用法?PHP payment::up_sign怎麽用?PHP payment::up_sign使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類payment
的用法示例。
在下文中一共展示了payment::up_sign方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: payment
* Скрипт для приёма и отправки запросов
* by Semen4ik
* Skype: Semenov1215
* to RuBukkit.ORG
*/
session_start();
include "config.php";
require_once "payment.class.php";
$pay = new payment();
if (isset($_REQUEST['amount']) && isset($_REQUEST['payment'])) {
header("Location: " . $pay->pay_form($_REQUEST['amount'], $pay->config['user_param'], $_REQUEST['payment']));
} else {
if (isset($_REQUEST['method']) && isset($_REQUEST['params'])) {
switch (strtolower($_REQUEST['method'])) {
case "check":
echo $pay->up_sign($_REQUEST['params']);
break;
case "pay":
echo $pay->up_sign($_REQUEST['params']);
$pay->pay($_REQUEST['params']['sum'], $_REQUEST['params']['account']);
break;
default:
$pay->up_json_reply("error", $_REQUEST['params']);
break;
}
exit;
} else {
if (isset($_GET['reply'])) {
echo $config['message'][$_GET['reply']];
} else {
if (!$pay->ik_sign($_REQUEST)) {