PHP code example of soliantconsulting / soliant-payment
1. Go to this page and download the library: Download soliantconsulting/soliant-payment 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/ */
soliantconsulting / soliant-payment example snippets
$response = $this->[Service Alias]->sendRequest([
'paymentType' => 'creditCard',
'amount' => '5.00',
'expirationDate' => '2017-01',
'cardNumber' => '4111111111111111'
]);
if ($response->isSuccess()) {
// get the response data
$data = $response->getData();
} else {
// get the errors
$errors = $response->getMessages();
}