PHP code example of forumpay / payment-gateway-php-client
1. Go to this page and download the library: Download forumpay/payment-gateway-php-client 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/ */
forumpay / payment-gateway-php-client example snippets
use ForumPay\PaymentGateway\PHPClient\PaymentGatewayApi;
$paymentGatewayApi = new PaymentGatewayApi(
$paymentGatewayUri,
$apiUser,
$apiSecret,
$userAgentApplicationIdentifier
);
try {
$getCurrencyListResponse = $paymentGatewayApi->getCurrencyList('EUR');
} catch (ApiExceptionInterface $exception) {
//TODO: handle the exception
}