Skip to main content
The Open Banking Integration method uses a secure redirection flow that sends customers to their bank’s authentication page, where the payment is authorized. The result is then returned to Payblis and communicated back to the merchant via callback URLs.
GB → United KingdomFR → FranceBE → BelgiqueCH → SuisseDE → AllemagneES → EspagneFI → FinlandeIT → ItalieLU → LuxembourgNL → Pays-BasPT → PortugalSE → Suède
PHP Implementation
// Set up the request parameters
$MyVars = array(
    'MerchantKey' => 'YOUR_MERCHANT_KEY',
    'amount' => '19.99',
    'currency' => 'EUR', //EUR,GBP
    'product_name' => 'Test product',
    'method' => 'open_banking',
    'RefOrder' => 'xxxxxx', //Maximum length is 12 symbols
    'Customer_Email' => 'customer@example.com',
    'Customer_Name' => 'Doe',
    'Customer_FirstName' => 'John',
    'country' => 'FR',
    'userIP' => $_SERVER['REMOTE_ADDR'],
    'lang' => 'en',
    'store_name' => 'Example Store',
    'urlOK' => 'https://your-domain.com/success',
    'urlKO' => 'https://your-domain.com/failed',
    'ipnURL' => 'https://your-domain.com/ipn'
);

// Serialize the data (convert array to string format)
$serializedData = serialize($MyVars);

// Base64 encode the serialized data directly (no URL encoding)
$encoded = base64_encode($serializedData);

// Prepare the custom payment URL
$paymentUrl = "https://pay.payblis.com/api/routing-ob.php?token=" . $encoded;

// Redirect the user to your custom endpoint (payment page)
header("Location: " . $paymentUrl);
exit;