Looking to hire Laravel developers? Try LaraJobs

laravel-pandago-sdk maintained by lloricode

Description
This is my package laravel-pandago-sdk
Last update
2026/04/20 16:26 (dev-main)
License
Downloads
154

Comments
comments powered by Disqus

laravel-pandago-sdk

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

https://pandago.docs.apiary.io

Installation

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,
];

Usage

# todo:
# see test suite for sample

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.