1. Go to this page and download the library: Download webtoucher/omnipay-anymoney 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/ */
$request = $gateway->completePurchase($_POST);
$response = $request->send();
$orderId = $response->getTransactionId(); // You can check this order and mark it as paid or failed.
if ($response->isSuccessful()) {
// Your handler
} else {
// Your handler
}
$request = $gateway->status([
'transactionId' => $order,
]);
$response = $request->send();
if ($response->isSuccessful()) {
// Your handler
// Maybe you need to check here the status of the order on your side
} else {
// Your handler
}
$ php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.