定制 baraja-core/csob-payment-authorizator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

baraja-core/csob-payment-authorizator

Composer 安装命令:

composer require baraja-core/csob-payment-authorizator

包简介

CSOB payment authorizator.

README 文档

README

Integrity check

Find transactions in mail box, parse and call authorization logic.

📦 Installation & Basic Usage

This package can be installed using Package Manager which is also part of the Baraja Sandbox. If you are not using it, you have to install the package manually following this guide.

A model configuration can be found in the common.neon file inside the root of the package.

To manually install the package call Composer and execute the following command:

$ composer require baraja-core/csob-payment-authorizator

In the projects common.neon you have to define the database credentials. A fully working example of configuration can be found in the common.neon file inside this package.

You can define the configuration simply using parameters (stored in the super-global array parameters).

For example:

services:
    - Baraja\CsobPaymentChecker\CsobPaymentAuthorizator(%tempDir%, %csob.imapPath%, %csob.login%, %csob.password%)

parameters:
    csob:
        imapPath: xxx
        login: xxx
        password: xxx

⚙️ Usage

In presenter use it very simply:

/** @var CsobPaymentAuthorizator $csob **/
$csob = $this->context->getByType(CsobPaymentAuthorizator::class);

// Or simply:

$csob = new Baraja\CsobPaymentChecker\CsobPaymentAuthorizator(...);

// Check account and authorize new orders

$unauthorizedVariables = [];

$csob->authOrders(
    $unauthorizedVariables,
    function (Transaction $transaction): void {
        // Do something...
    }
);

📄 License

baraja-core/csob-payment-authorizator is licensed under the MIT license. See the LICENSE file for more details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2020-06-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固