PHP code example of swervpaydev / laravel
1. Go to this page and download the library: Download swervpaydev/laravel 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 / laravel example snippets
/**
* Configuration file for Swervpay.
*
* This file contains the configuration options for the Swervpay integration.
* The 'secret_key' and 'business_id' options are retrieved from the environment variables.
*/
return [
/**
* Configuration option for the secret key used in Swervpay.
* The value is retrieved from the environment variable SWERVPAY_SECRET_KEY.
*
* @var string
*/
'secret_key' => env('SWERVPAY_SECRET_KEY'),
/**
* The business ID for Swervpay.
*
* This value is retrieved from the environment variable SWERVPAY_BUSINESS_ID.
*/
'business_id' => env('SWERVPAY_BUSINESS_ID'),
];