<?php
require_once 'allopass-apikit-php5/api/AllopassAPI.php';
$api = new AllopassAPI();
//Get values
$data = $_REQUEST['data'];
$product_name = $_REQUEST['product_name'];
$pricepoint = $_REQUEST['pricepoint'];
$site_id = "117174"; // Ma-bimbo
//$site_id = "239516"; // AmourSucre
$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, 
	 'forward_url' => $forward_url,
	 'data' => $data
	);
$responsetr = $api->prepareTransaction($values);
$url = $responsetr->getBuyUrl();
$trxid = $responsetr->getTransactionId();
$pricepoint_detail = $responsetr->getPricepoint();
$country = $pricepoint_detail->getCountryCode();
$type = $pricepoint_detail->getType();


?>		