コード例 #1
0
ファイル: Vp.php プロジェクト: CapsuleCorpIndonesia/apel-enak
    function error()
    {
        $order_id = addslashes($_GET['order_id']);
        $status_code = addslashes($_GET['status_code']);
        $transaction_status = addslashes($_GET['transaction_status']);
        $vpt = new VpTransaction();
        $vpt->getByID($order_id);
        $app = new AppAccount();
        $app->getByID($vpt->order_app_id);
        AppAccount::checkOwnership($app);
        $vpt->order_status_from = $status_code;
        $vpt->save();
        ?>
        <div class="container attop"  >
            <div class="col-md-8 col-md-offset-2">

                <div style="text-align: center; padding: 20px;">
                    <a href="<?php 
        echo _SPPATH;
        ?>
">
                        <img src="<?php 
        echo _SPPATH;
        ?>
images/appear-icontext.png" style="max-width: 300px;">
                    </a>
                </div>
                <?php 
        ?>

                <h1>Error</h1>
                <p>Your Payment Error</p>

                <p>
                    Please <a href="<?php 
        echo _SPPATH;
        ?>
contact">contact us</a> for more details.
                </p>

                <a class="btn btn-default" href="<?php 
        echo _SPPATH;
        ?>
myApps">back to my Apps</a>
                <?php 
        ?>
            </div>
        </div>
        <?php 
        /*
        * Array
        (
            [url] => vp/error
            [order_id] => 70872981
            [status_code] => 202
            [transaction_status] => deny
        )
        */
    }