PHP code example of nekoding / starpay-laravel
1. Go to this page and download the library: Download nekoding/starpay-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/ */
nekoding / starpay-laravel example snippets
use Nekoding\StarpayLaravel\StarpayLaravel;
# name
$parameters = array(
"email" => "[email protected]",
"sendid" => "xxxx",
"sendpoint" => "xxxx",
"money" => 100,
"username" => "xxxx"
);
# PC version : it will redirect to star-pay page PC version
return StarpayLaravel::build($parameters)->redirect();
# Mobile version : it will redirect to star-pay page Mobile version
return StarpayLaravel::build($parameters)->mobile()->redirect();