require_once '../include/Helpers.php'; require_once '../include/Config.php'; require_once '../backend/Client.php'; $logOutput = 'Log will be displayed here.'; if (!isset($_GET["uxIsLastCapture"])) { $isLastCapture = 'false'; } if (isset($_GET["uxBtnCapture"]) && $_GET["uxBtnCapture"] != "") { $transactionId = $_GET["uxTransactionId"]; $isLastCapture = isset($_GET["uxIsLastCapture"]) ? $_GET["uxIsLastCapture"] : $isLastCapture; $amount = $_GET["uxAmount"]; $vat = $_GET["uxVat"]; $vatFormat = $_GET["uxVatFormat"]; $transmissionTime = $_GET["uxTransmissionTime"] = isset($_GET["uxTransmissionTime"]) && $_GET["uxTransmissionTime"] != '' ? $_GET["uxTransmissionTime"] : gmdate("Y-m-d H:i:s"); $client = new Client(); $responseObject = $client->capture($transactionId, $amount, $vat, $vatFormat, $isLastCapture, $transmissionTime, $environment, $secretKey); $logOutput = print_r($responseObject, true); } ?> <!DOCTYPE html> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>WyWallet-kassan Test Client</title> <meta charset="utf-8" /> <link href="style.css" rel="stylesheet" /> </head> <body style="width:840px"> <br> <img alt="Wy-kassan Test Tool" src="../img/WyWallet_Logo_RGB_s.png"> <br><br>