PHP code sample to view SWP response message

<?php if ($_SERVER['REQUEST_METHOD'] == 'POST')

 {

    echo $_POST;

    echo "<br />";

    print "CONTENT_TYPE: " . $_SERVER['CONTENT_TYPE'] . "<BR /> <BR />";

    $SWPdata = file_get_contents('php://input');

    print "Secure Web Pay(SWP) Response Data: <pre>";

    var_dump($SWPdata);

    var_dump($_POST);

    print "</pre>";

   }

 ?>

 

SWP-Checkout integration guide

 

Payments Gateway grants you a nonexclusive copyright license to use all programming code examples from which you can generate similar function tailored to your own specific needs.

All sample code is provided by Payments Gateway for illustrative purposes only. These examples have not been thoroughly tested under all conditions. Payments Gateway, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs.

All programs contained herein are provided to you "AS IS" without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.

Disclaimer: These examples have been provided by users and have not been thoroughly tested under all conditions. ACH Direct and Payments Gateway, therefore, cannot guarantee or imply reliability, serviceability, or function of this code.

All code contained herein are provided to you "AS IS" without any warranties of any kind

Follow Us

Stay up to date with the latest PG news via RSS, Twitter and Google +1

Copyright © 2012 Payments Gateway - All Rights Reserved Privacy | Legal