承接 snowfire/mondido-php-sdk 相关项目开发

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

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

snowfire/mondido-php-sdk

最新稳定版本:2.0.0

Composer 安装命令:

composer require snowfire/mondido-php-sdk

包简介

A fork of the Mondido PHP SDK available on composer

README 文档

README

To get started with the SDK, simply run composer require snowfire/mondido-php-sdk and include the composer-generated autoload.php.

Every time you wish to use the api through the SDK, you must first instantiate the Mondido\Mondido class with your merchant id, password and secret. If you plan to use this in more than one place, it is recommended to place this instantiation in a constructor, trait or similar.

You can then access the different api features through your main instance.

Example

<?php

namespace Foo\Bar

class MondidoExample
{

    private $api;

    public function __construct()
    {
        $merchantId = 'yourMerchantId';
        $password = 'yourApiPassword';
        $secret = 'yourApiSecret';

        $this->api = new Mondido\Mondido($merchantId, $password, $secret);
    }

    public function recordPayment($data)
    {
        $transaction = $this->api->transaction()->create($data);
    }
 }

For complete API documentation, please visit Mondido.

The unit tests require PHPUnit to be installed and run phpunit test/

Changelog

  • 2.0, Transitioned to non-static api
  • 2.0, Refactored all code for PSR-0
  • 2.0, Fixed tests
  • 2.0, Bug and syntax fixes
  • 1.2, Updated Hash recipe, refactor models, etc.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-07-21