lloricode/laravel-pandago-sdk is a Laravel package for this is my package laravel-pandago-sdk.
It currently has 3 GitHub stars and 154 downloads on Packagist (latest version v1.6.10).
Install it with composer require lloricode/laravel-pandago-sdk.
Discover more Laravel packages by lloricode
or browse all Laravel packages to compare alternatives.
Last updated
https://pandago.docs.apiary.io
You can install the package via composer:
composer require lloricode/laravel-pandago-sdk
You can publish the config file with:
php artisan vendor:publish --tag="laravel-pandago-sdk-config"
This is the contents of the published config file:
<?php
// config for Lloricode/LaravelPandagoSdk
return [
'url' => [
'auth' => [
'production' => env('PANDAGO_URL_AUTH_PRODUCTION', 'https://sts.deliveryhero.io'),
'sandbox' => env('PANDAGO_URL_AUTH_SANDBOX', 'https://sts-st.deliveryhero.io'),
],
'base' => [
'production' => env('PANDAGO_URL_BASE_PRODUCTION', 'https://pandago-api-apse.deliveryhero.io'),
'sandbox' => env('PANDAGO_URL_BASE_SANDBOX', 'https://pandago-api-sandbox.deliveryhero.io'),
]
],
'mode' => env('PANDAGO_MODE', Lloricode\LaravelPandagoSdk\PandagoClient::ENVIRONMENT_SANDBOX),
'country_code' => env('PANDAGO_COUNTRY_CODE', 'sg'), // must be `sg` when in sandbox mode
'jwt' => [
'expire_in_minutes' => env('PANDAGO_JWT_EXPIRE_IN_MINUTES', 1),
'key_id' => env('PANDAGO_JWT_KEY_ID'),
'jti' => env('PANDAGO_JWT_JTI'),
'aud' => env('PANDAGO_JWT_AUD')
],
'auth' => [
'grant_type' => 'client_credentials',
'client_id' => env('PANDAGO_CLIENT_ID'),
'client_assertion_type' => 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
'scope' => env('PANDAGO_SCOPE'),
],
'key_pair_path' => env('PANDAGO_KEY_PAIR_PATH', storage_path()),
'retry' => 3,
];
# todo:
# see test suite for sample
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.