承接 opendns/merchant-esolutions-php 相关项目开发

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

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

opendns/merchant-esolutions-php

最新稳定版本:v0.1.2

Composer 安装命令:

composer require opendns/merchant-esolutions-php

包简介

A client library for Merchant e-Solutions' payment gateway and other APIs

README 文档

README

Build Status

Introduction

merchant-esolutions-php is designed to make it easier to use the various payment APIs provided by Merchant e-Solutions.

If you find any bugs, or have feature requests, please file an issue in GitHub or open a pull request.

Installation

Composer

Ensure that composer is installed on your machine. You will need to create a composer.json file in the root directory of your application.

{
    "require": {
        "opendns/merchant-solutions-php": "~0.1"
    }
}

Once the composer.json file is created, follow these steps from composer to install the merchant-esolutions-php package.

Composer creates its own autoloader. Include vendor/autoload.php in your application config file and you will have full access to the merchant-esolutions-php client.

APIs

This readme has a short description of the APIs and an example of each, but there's also a full api reference available on this project's Github page.

Trident

Trident is the payment gateway API, providing most card operations. A simple transaction might look like this:

use OpenDNS\MES\Trident\Sale;

$response = Sale::factory(Sale::ENV_TEST)
    ->setAuthenticationInfo('xxxxxxxxxxx', 'yyyyyyy')
    ->setAmount(13.37)
    ->setCardNumber('3499-999999-99991')
    ->setCardExpiration(12, 2018)
    ->setCvv2(1234)
    ->execute();

echo $response['transaction_id'];

Reporting

The reporting API offers full access to any of the MeS gateway's reports as CSV data. Here's a sample report:

use OpenDNS\MES\Reporting\Report;

$response = Report::factory(Report::ENV_PROD)
    ->setAuthenticationInfo('xxxxxxxxxxx', 'yyyyyyy')
    ->setNodeId('zzzzzzzzzz')
    ->setReportId(Report::REPORT_SETTLEMENT_SUMMARY)
    ->setBeginDate(new \DateTime('-1 week', new \DateTimeZone('UTC')))
    ->setEndDate(new \DateTime('now', new \DateTimeZone('UTC')))
    ->setIncludeTridentTransactionId(true)
    ->execute();

$stream = $response->getResponseBodyStream();
while ($row = fgetcsv($stream)) {
    echo implode(',', $row);
}

Recurring Billing

The recurring billing API allows you to create and manage recurring billing profiles.

Note: If you're building a new application, it's probably better to use the Trident API to store a card and issue additional Sale transactions against it

Further Note: The recurring billing API support is experimental, please feel free to open bugs/pull requests if you find yourself using it.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 13
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-11-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固