Optimal Payments Developer Center

Designed for Developers

Getting started with online payments is quick and simple with Optimal Payments.

Check out our code samples. Get a test account.

Grab a coffee and review our technical documentation.

Code Sample
View Raw
using
require_once('netbanx.php');

$nbx = new NetbanxAPI(
    array(
        "key" => 'Qtz9UWrNEod1aKJuuDKQ:NAAd6bef4be7deaeea2aeb5',
        "uri" => 'https://api.test.netbanx.com'
    )
);

$order = $nbx->create_order(
   array(
        'total_amount'      => 1337,
        'currency_code'     => 'GBP',
        'merchant_ref_num'  => sprintf( 'Order ID %s', time() )
    )
);