nekoding/starpay-laravel

1.0.3 2020-12-14 04:15 UTC

This package is auto-updated.

Last update: 2024-05-14 12:02:31 UTC


README

Latest Version on Packagist Total Downloads Build Status StyleCI

Unofficial star-pay API client for laravel. Take a look at contributing.md to see a to do list.

Installation

Via Composer

$ composer require nekoding/starpay-laravel

Usage

use Nekoding\StarpayLaravel\StarpayLaravel;

# required parameters : sendid, money
# optional parameters : email, sendpoint, username
$parameters = array(
    "email"     => "johndoe@mail.com",
    "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();

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email enggartivandi@outlook.com instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.