Пример #1
7
<?php

require_once './IPay88.class.php';
$ipay88 = new IPay88('MERCHANT_CODE', 'MERCHANT_KEY');
$response = $ipay88->getResponse();
?>
<!doctype html>
<html>
<head>
    <title>IPay88 - Test - Response</title>
</head>
<body>
    <h1>IPay88 payment gateway</h1>

    <?php 
if ($response['status']) {
    ?>
        <p>Your transaction was successful.</p>
    <?php 
} else {
    ?>
        <p>Your transaction failed.</p>
    <?php 
}
?>

    <table>
        <?php 
if ($response) {
    ?>
            <?php