<?php
require_once 'allopass-apikit-php5/api/AllopassAPI.php';
$api = new AllopassAPI();
//Get values
$data = $_REQUEST['data'];
$pricepoint = $_REQUEST['pricepoint'];
$site_id = "117174"; // Ma-bimbo
//$site_id = "239516"; // AmourSucre
$product_name = "Bimbos d'or";
$forward_url = "http://www.ma-bimbo.com/game/bank/allopass/bimbo-or-ok.php";

$values = array(
	 'site_id' => $site_id, 
	 'pricepoint_id' => $pricepoint, 
	 'product_name' => $product_name, 
	 'data' => $data,
	 'forward_url' => $forward_url
	);
$response = $api->prepareTransaction($values);
$return = $response->getCheckoutButton();
$trxid = $response->getTransactionId();
$buyurl = $response->getBuyUrl();
// https://payment.allopass.com/buy/checkout.apu?trxid=
echo $trxid;
?>	