<?php require_once '../include/Helpers.php'; require_once '../include/Config.php'; require_once '../backend/Client.php'; $logOutput = 'Log will be displayed here.'; if (isset($_GET["uxBtnRefund"]) && $_GET["uxBtnRefund"] != "") { $transactionId = $_GET["uxTransactionId"]; $description = $_GET["uxDescription"]; $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->refund($transactionId, $description, $amount, $vat, $vatFormat, $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> <?php