<?php
// Payment request (excerpt — full field list in docs)
$MyVars = array(
'MerchantKey' => 'YOUR_API_KEY',
'amount' => '19.99',
'currency' => 'EUR',
// … customer, urls, ipnURL, etc.
);
$token = base64_encode(serialize($MyVars));
$paymentUrl =
'https://pay.payblis.com/api/payment_gateway.php?token='
. $token;
header('Location: ' . $paymentUrl);
exit;