<?php
require_once 'allopass-apikit-php5/api/AllopassAPI.php';
$api = new AllopassAPI();

//$response = $api->createDiscreteButton(array(
$response = $api->prepareTransaction(array(
 'site_id' => 222616, 
 'pricepoint_id' => 788, 
 'product_name' => 'TEST MOBILEPAY', 
 'forward_url'=> 'http://www.allopass.com', 
 'amount' => '1', 
 'reference_currency' => 'EUR'
));
$url = $response->getBuyUrl();
header('Location: '.$url) ;

?>