X (Twitter) · Linkedin · Changelog
PHP 7.2+ and Composer are required.
To get the latest version of Swervpay PHP SDK, simply require it:
$ composer require swervpaydev/sdk
Import the Swervpay class and create a new instance with your secret_key and business_id:
use Swervpaydev\SDK\Swervpay;
$config = [
'secret_key' => '<SECRET_KEY>',
'business_id' => '<BUSINESS_ID>'
];
$swervpay = new Swervpay($config);
Replace <SECRET_KEY> and <BUSINESS_ID> with your actual secret key and business ID.