Commit 7cea6e6d authored by GiorgosK's avatar GiorgosK

Controller page can handle user cancel action

parent 8da8824e
......@@ -53,6 +53,10 @@ class CallbackController extends ControllerBase {
* Process the callback from winbank
*/
public function processCallback(Request $request){
$action = $request->get("action");
if ($action == "cancel") {
return "You have cancelled your payment";
}
$hashkey = $request->get('HashKey');
$order_id = $request->get('MerchantReference');
$order = Order::load($order_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment