1. Go to this page and download the library: Download philipbrown/worldpay 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/ */
use PhilipBrown\WorldPay\Response;
$response = new Response('qwerty', $_POST);
echo $response->name; // 'Philip Brown'
// Asserts the response is from WorldPay
$response->isValid();
// Asserts the transaction was successful
$response->isSuccess();
// Asserts the transaction was cancelled
$response->isCancelled();
// Asserts the transaction was in the production environment
$response->isProduction();
// Asserts the transaction was in the development environment
$response->isDevelopment();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.