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

$response = $api->prepareTransaction(array(
 'site_id' => 287699, 
 'pricepoint_id' => 521, 
 'product_name' => 'SMS', 
 'forward_url'=> 'https://ssl.tg-payment.com/process/providers/allopass/inbound.php?stat=OK', 
 'error_url'=> 'https://ssl.tg-payment.com/process/providers/allopass/inbound.php?stat=NOK', 
 'notification_url'=> 'https://ssl.tg-payment.com/process/providers/allopass/inbound.php', 
 'merchant_transaction_id' => 'EXBR1209-307459055894714',
));
 
$url = $response->getBuyUrl();
echo '<a href="'.$url . '">'.$url.'</a>';
?>