Example #1
0
foreach ($envInfo as $k => $v) {
    $eiTableRows[] = [['class' => 'name', 'data' => $k], ['class' => 'value', 'data' => $v]];
}
// Envelop Parameters
$epTableRows = [];
foreach ($epValues as $k => $v) {
    $epTableRows[] = [['class' => 'name', 'data' => $k], ['class' => 'value', 'data' => $v]];
}
$eiTableRows || ($eiTableRows = [[['colspan' => 2, 'data' => 'No data']]]);
$epTableRows || ($epTableRows = [[['colspan' => 2, 'data' => 'No data']]]);
$rpTableRows || ($rpTableRows = [[['colspan' => 2, 'data' => 'No data']]]);
$eiTable = Table::quick(['Name', 'Value'], $eiTableRows, [], $eiCaption);
// Environment Info
$epTable = Table::quick(['Name', 'Value'], $epTableRows, [], $epCaption);
// Envelop Params
$rpTable = Table::quick(['Name', 'Value'], $rpTableRows, [], $rpCaption);
// Request Params
$wrForm = $webRequest->getForm([], $submitBtn);
// HTML Form
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Web Request &middot; RedsysVirtualPos Sample</title>

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" integrity="sha384-aUGj/X2zp5rLCbBxumKTCw2Z50WgIr1vs/PFN4praOTvYXWlVyh2UtNUU0KAUhAX" crossorigin="anonymous">
Example #2
0
$rpTableRows = [];
foreach ($rpValues as $k => $v) {
    $rpTableRows[] = [['class' => 'name', 'data' => $k], ['class' => 'value', 'data' => $v]];
}
// Response Information
$riTableRows = [];
foreach ($responseInfo as $k => $v) {
    $riTableRows[] = [['class' => 'name', 'data' => $k], ['class' => 'value', 'data' => $v]];
}
// Error Information
$erTableRows = [];
if (isset($errorCode)) {
    foreach ($errorCode as $k => $v) {
        $erTableRows[] = [['class' => 'name', 'data' => $k], ['class' => 'value', 'data' => $v]];
    }
}
$eiTableRows || ($eiTableRows = [[['colspan' => 2, 'data' => 'No data']]]);
$epTableRows || ($epTableRows = [[['colspan' => 2, 'data' => 'No data']]]);
$_REQUEST || ($rpTableRows = [[['colspan' => 2, 'data' => 'No data']]]);
$_REQUEST || ($riTableRows = [[['colspan' => 2, 'data' => 'No data']]]);
$erTableRows || ($erTableRows = [[['colspan' => 2, 'data' => 'No data']]]);
$eiTable = Table::quick(['Name', 'Value'], $eiTableRows, [], $eiCaption);
// Environment Info
$epTable = Table::quick(['Name', 'Value'], $epTableRows, [], $epCaption);
// Envelop Params
$rpTable = Table::quick(['Name', 'Value'], $rpTableRows, [], $rpCaption);
// Request Params
$riTable = Table::quick(['Name', 'Value'], $riTableRows, [], $riCaption);
// Request Info
$erTable = Table::quick(['Name', 'Value'], $erTableRows, [], $erCaption);
// Error Info