Location: PHPKode > projects > XShop - eXtended phpShop > xshop/verify.php
<?php
  /* Use this with Payflow Link.  Use for the Silent post URL.  Use POST for the return url method.
  ** Set Return Url to the thankyou.php script.
  **
  ** $Id: verify.php,v 1.1 2002/10/19 01:25:21 greywire Exp $
  */
  
$base_dir = "/path/to/your/xshop/";
require($base_dir. "etc/phpshop.cfg");

  if (!$RESULT) {
    $fp = fopen(URL . "?page=checkout/thankyou&func=checkoutComplete&" .
           "ps_session=$USER1&user_id=$USER2&ship_to_info_id=$USER3&ship_method_id=$USER4",'r');
	while (!feof ($fp)) {
      $buffer .= fgets($fp, 4096);
    }
    fclose ($fp);
    
    //** You could send yourself email here containing $buffer to verify that the card was authorized
  }
  //** and you could put something here to send email saying the card was declined.
?>
Return current item: XShop - eXtended phpShop