本文整理汇总了PHP中payment::fails方法的典型用法代码示例。如果您正苦于以下问题:PHP payment::fails方法的具体用法?PHP payment::fails怎么用?PHP payment::fails使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类payment
的用法示例。
在下文中一共展示了payment::fails方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: u
$app->render(new u('payment.flexiload.request'));
});
$app->post('flexiload/confirm/', function () use($app) {
$app->view->setData('form_action', BASEURL . "dashboard/payment/add/flexiload/confirm/process");
$app->view->setData('form_title', "Are you confirm?");
$app->view->setData('payment_amount', $app->request()->post('payment_amount'));
$app->view->setData('payment_memo', $app->request()->post('payment_memo'));
$app->view->setData('customer_id', $app->request()->post('customer_id'));
$app->render(new u('payment.flexiload.request_confirm'));
});
$app->get('/flexiload/confirm/process', function () use($app) {
$payment = new payment();
$payment->who_is_paying = L::getSessionValue('usid');
$payment->who_is_paying = $app->request()->post();
$payment->payment_type = 'return';
$payment->save();
if ($payment->fails()) {
$app->view->setData('error', 1);
$app->view->setData('msg', $payment->getError());
$app->render(new u('msg'));
} else {
$app->view->setData('success', 1);
$app->view->setData('msg', "Succesfully Payment Returned.");
$app->render(new u('msg'));
}
});
//Flexiload End
});
//End return payment operation
});
});