PHP code example of enumit / bambora

1. Go to this page and download the library: Download enumit/bambora library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

enumit / bambora example snippets


$payment = \enumit\bambora\Gateway::getPaymentRequest('Your merchantId', 'Your API passcode', 'API version');

$response = $payment->makePayment([
    'order_number' => '123456',
    'amount' => '123.45',
    'payment_method' => 'card',
    'card' => [
        'number' => '400000001111',
        'name' => 'Card Holder',
        'expiry_month' => '08',
        'expiry_year' => '20',
        'cvd' => '123',
    ],
]);