1. Go to this page and download the library: Download credopay/paymentgateway 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/ */
credopay / paymentgateway example snippets
use CredoPay\CredoPayPaymentGateway;
use CredoPay\Resources\OrderAPI;
// Initialize the payment gateway
$clientId = 'your-client-id';
$clientSecret = 'your-client-secret';
$gateway = new CredoPayPaymentGateway($clientId, $clientSecret);
// Initialize the OrderAPI
$orderAPI = new OrderAPI($gateway);