定制 altapay/api-php 二次开发

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

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

altapay/api-php

最新稳定版本:3.5.7

Composer 安装命令:

composer require altapay/api-php

包简介

AltaPay: Payments less complicated

README 文档

README

For accessing AltaPay payment gateway through the API

Installation

composer require altapay/api-php

Usage

For doing a capture the following can be used

$auth = new \Altapay\Authentication('username', 'password' , 'myshop.gateway.com');
$api = new \Altapay\Api\Payments\CaptureReservation($auth);
$api->setTransactionId('transaction id');
// Or you can use a transaction object you got from a previous API call
// $api->setTransaction($transactionObject);
try {
    $response = $api->call();
    // If everything went perfect, you will get a \Altapay\Api\Document\Capture in the response
} catch (\Altapay\Api\Exceptions\ClientException $e) {
    // If anything went wrong, you will get a exception where you can see the raw request and the raw response
}

Requirements

The AltaPay API PHP requires PHP 7.1.0 or greater with the following extensions installed:

  • date
  • filter
  • mbstring
  • pcre
  • Reflection
  • SimpleXML
  • spl

Changelog

See Changelog for all the release notes.

License

Distributed under the MIT License. See LICENSE for more information.

Documentation

For more details please see documentation

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-25