1. Go to this page and download the library: Download myckhel/laravel-vtpass 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/ */
myckhel / laravel-vtpass example snippets
return [
"username" => env("VTPASS_USERNAME"),
"password" => env("VTPASS_PASSWORD"),
// specify to use sandbox mode or live mode
"mode" => env("VTPASS_MODE", "sandbox"), // app mode sandbox ?? live
];
use Vtpass;
Vtpass::verify($parameters);
Vtpass::purchase($parameters);
Vtpass::status($parameters);
Vtpass::variations($parameters);