承接 zikraauliya/flip-connector 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zikraauliya/flip-connector

最新稳定版本:v0.2.9

Composer 安装命令:

composer require zikraauliya/flip-connector

包简介

Flip business API integration using Saloon PHP

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is an unofficial package that I use for my own personal project, so this package is highly opiniated. You can still use this for your own project at your own risk or fork it as inspiration.

Installation

You can install the package via composer:

composer require zikraauliya/flip-connector

You can publish the config file with:

php artisan vendor:publish --tag="flip-connector-config"

This is the contents of the published config file:

return [
    /*
    |--------------------------------------------------------------------------
    | Secret Key
    |--------------------------------------------------------------------------
    |
    | This value is the secret key found in your Flip Business account. This value is used when the
    | package needs to generate a base64 encoded encryption for Flip Business authorization.
    |
    */
    'secret_key' => env('FLIP_SECRET_KEY'),

    /*
    |--------------------------------------------------------------------------
    | Environment
    |--------------------------------------------------------------------------
    |
    | This value is determines the enviroment of Flip Business API endpoint. Available options are 'big_sandbox_api'
    | for testing, 'kyc' (Know-Your-Client) for Non-PJP Agent Money Transfer  or 'api' for live production integration,
    | default value is 'big_sandbox_api'.
    |
    */
    'env' => env('FLIP_ENV', 'big_sandbox_api'),

    /*
    |--------------------------------------------------------------------------
    | Base URL
    |--------------------------------------------------------------------------
    |
    | This value is the base URL of Flip Business API endpoint. This value is based on env('FLIP_ENV').
    |
    */
    'base_url' => 'https://bigflip.id/'.env('FLIP_ENV'),

    /*
    |--------------------------------------------------------------------------
    | Validation Token
    |--------------------------------------------------------------------------
    |
    | This value is the validation token found in your Flip Business account. This value is used when
    | we need to ensure whether the callback is actually from Flip server.
    |
    */
    'validation_token' => env('FLIP_VALIDATION_TOKEN'),

    /*
    |--------------------------------------------------------------------------
    | Private Key
    |--------------------------------------------------------------------------
    |
    | This value is the private section of public/private key ssh pair.
    | In this example we're storing private key in .ENV file, you can store it however you want.
    | In production environment you're highly recommended to store it as safe as possible.
    |
    */
    'private_key' => env('SSH_PRIVATE_KEY'),
];

Usage

$flipConnector = new ZikraAuliya\FlipConnector();
$request = new GetBankInfoRequest;
$response = $flip->send($request);

For more usage information, consult Flip Documentation

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.

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-13