PHP code example of vwebdesign / onlinebetaalplatform
1. Go to this page and download the library: Download vwebdesign/onlinebetaalplatform 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/ */
vwebdesign / onlinebetaalplatform example snippets
// Config
$config = [
'apiKey' => '000000000000000000',
'sandbox' => true,
'baseUrl' => 'https://www.yourdomain.com/',
];
// Create transaction
$transaction = (new \OBP\Transactions\CreateTransaction($config))
->setTotalPrice(100)
->addProduct([
'Test product',
100
])
->setReturnUrl('/return')
->setMerchantUid('mer_000000000')
->doRequest();