1. Go to this page and download the library: Download camoo/payment-api 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/ */
camoo / payment-api example snippets
amoo\Payment\Http\Client as PaymentClient;
// Your credentials
$apiKey = 'YOUR_API_KEY';
$apiSecret = 'YOUR_API_SECRET';
$client = new PaymentClient(
apiKey: $apiKey,
apiSecret: $apiSecret,
httpClient: null, // optionally pass a custom ClientInterface
debug: false, // set to true for verbose logging
apiVersion: 'v1'
);