PHP Classes

File: request.php

Recommend this page to a friend!
  Classes of Alessandro Astarita  >  GestPayCrypt-PHP  >  request.php  >  Download  
File: request.php
Role: Example script
Content type: text/plain
Description: Example request
Class: GestPayCrypt-PHP
GestPay Italian credit card payment gateway
Author: By
Last change:
Date: 18 years ago
Size: 826 bytes


Class file image Download

require_once "../";

define("GESTPAY_SHOPLOGIN", "");
define("GESTPAY_URL_PAGAM", "");

// Parametri obbligatori
if (empty($_GET["id"])) {
"Parametro mancante: 'id'\n");

if (empty(
$_GET["price"])) {
"Parametro mancante: 'price'\n");

// Parametri opzionali
if (empty($_GET["cur"])) {
$cur = "242"; // default

$crypt = new GestPayCrypt();


if (!
$crypt->Encrypt()) {
"Errore: ".$crypt->GetErrorCode().": ".$crypt->GetErrorDescription()."\n");

$req_url = GESTPAY_URL_PAGAM."?a=".$crypt->GetShopLogin().

header("Location: ".$req_url);


For more information send a message to info at phpclasses dot org.