PHP code example of koizoinno / worldpay
1. Go to this page and download the library: Download koizoinno/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/ */
koizoinno / worldpay example snippets
// Create a client.
$client = new WorldpayClient();
// Pass settings via setupApi method.
$client->setupApi($acctId, $acctSubId, $merchantPin, $encryptionKey);
// Create a request and pass request type (creditcard, ach, etc) and pass in the client.
$request = new WorldpayRequest('creditcard', $client);
// Add fields as