PHP code example of swervpaydev / sdk

1. Go to this page and download the library: Download swervpaydev/sdk 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/ */

    

swervpaydev / sdk example snippets


use Swervpaydev\SDK\Swervpay;

$config = [
    'secret_key' => '<SECRET_KEY>',
    'business_id' => '<BUSINESS_ID>'
];

$swervpay = new Swervpay($config);