承接 uzdevid/yii2-apelsin 相关项目开发

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

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

uzdevid/yii2-apelsin

Composer 安装命令:

composer require uzdevid/yii2-apelsin

包简介

Integration with the "Apelsin" payment system

README 文档

README

Integration with the "Apelsin" payment system

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist uzdevid/yii2-apelsin "dev-main"

or add

"uzdevid/yii2-apelsin": "dev-main"

to the require section of your composer.json file.

Usage

Note: You can use this extension after creating a contract between the Apelsin service and your company. And you can use most of the methods only when you create your company as a payment system through the Central Bank of the Republic of Uzbekistan.

Login and password can be obtained from the technical specialists of the Apelsin service

    $config = [
        'login' => '<login>',
        'password' => '<password>'
    ];

Creating an instance of a class

    $apelsin = new uzdevid\apelsin\Apelsin($config);

Working with cards

Getting p2p information about the card (cards.get_p2p_info)

params:

  1. card number is string
    $card = $apelsin->card->info('<card number>');

Getting card data by card number and expiry date (cards.get)

params:

  1. card number is string or array
  2. expiry date is string
    $card = $apelsin->card->data('<card number>', '<expiry date>');

or (cards.get_some)

    $cards = [
        ['token' => '<token_1>', 'expire' => '<expire_1>'],
        ['token' => '<token_2>', 'expire' => '<expire_2>'],
        ['token' => '<token_3>', 'expire' => '<expire_3>'],
    ];
    $card = $apelsin->card->data($cards);

Getting card data by token (cards.get)

params:

  1. token is string or array
    $card = $apelsin->card->dataByToken('<token>');

or (cards.get_some)

    $tokens = ['<token_1>', '<token_2>', '<token_3>'];
    $card = $apelsin->card->dataByToken($tokens);

Getting a phone number linked to a card by card number and expiry date (cards.get_phone)

params:

  1. card number is string
  2. expiry date is string
    $card = $apelsin->card->phone('<card number>', '<expiry date>');

Getting a phone number linked to a card by token (cards.get_phone)

params:

  1. token is string
    $card = $apelsin->card->phoneByToken('<token>');

Method that will block the card (cards.block)

params:

  1. token is string
    $card = $apelsin->card->block('<token>');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固