2017 © Pedro Peláez
 

library merchantapi-php

image

zipmoney/merchantapi-php

  • Thursday, April 26, 2018
  • by zipMoney
  • Repository
  • 10 Watchers
  • 1 Stars
  • 12,205 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 15 Versions
  • 52 % Grown

The README.md

zipMoney Payments Pty Ltd.

ZipMoney Merchant API Initial build, (*1)

  • API version: 2017-03-01

Requirements

PHP 5.3 and later, (*2)

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:, (*3)

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/zipMoney/merchantapi-php.git"
    }
  ],
  "require": {
    "zipMoney/merchantapi-php": "*@dev"
  }
}

Then run composer install, (*4)

Manual Installation

Download the files and include autoload.php:, (*5)

    require_once('/path/to/merchantapi-php/autoload.php');

Tests

To run the unit tests:, (*6)

composer require 
phpunit

Getting Started

Please follow the installation procedure and then run the following:, (*7)

setApiKey('Authorization', 'YOUR_API_KEY');
\zipMoney\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Bearer');
\zipMoney\Configuration::getDefaultConfiguration()->setEnvironment('ENVIRONMENT HERE'); // Allowed values are  ( sandbox | production )
\zipMoney\Configuration::getDefaultConfiguration()->setPlatform('PLATFORM HERE'); // E.g. Magento/1.9.1.2

$api_instance = new zipMoney\Api\ChargesApi();
$id = "id_example"; // string | The id of the authorised charge
$idempotency_key = "idempotency_key_example"; // string | The unique idempotency key.

try {
    $result = $api_instance->chargesCancel($id, $idempotency_key);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChargesApi->chargesCancel: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://api.zipmoney.com.au/merchant/v1, (*8)

Class Method HTTP request Description
ChargesApi chargesCancel POST /charges/{id}/cancel Cancel a charge
ChargesApi chargesCapture POST /charges/{id}/capture Capture a charge
ChargesApi chargesCreate POST /charges Create a charge
ChargesApi chargesList GET /charges List charges
ChargesApi chargesRetrieve GET /charges/{id} Retrieve a charge
CheckoutsApi checkoutsCreate POST /checkouts Create a checkout
CheckoutsApi checkoutsGet GET /checkouts/{id} Retrieve a checkout
CustomersApi customersGet GET /customers/{id} Retrieve customer
CustomersApi customersList GET /customers List customers
RefundsApi refundsCreate POST /refunds Create a refund
RefundsApi refundsList GET /refunds List refunds
RefundsApi refundsRetrieve GET /refunds/{id} Retrieve a refund
SettlementsApi settlementsGet GET /settlements/{id} Retrieve a settlement
SettlementsApi settlementsList GET /settlements List settlements
TokensApi tokensCreate POST /tokens Create token

Documentation For Models

Documentation For Authorization

Authorization

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

The Versions

26/04 2018

dev-develop

dev-develop http://zipmoney.com.au

  Sources   Download

MIT proprietary

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk zipmoney zippay zipcredit merchantapi

26/04 2018

dev-master

9999999-dev http://zipmoney.com.au

  Sources   Download

MIT proprietary

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk zipmoney zippay zipcredit merchantapi

26/04 2018

1.0.6

1.0.6.0 http://zipmoney.com.au

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk zipmoney zippay zipcredit merchantapi

26/04 2018

dev-release/1.0.6

dev-release/1.0.6 http://zipmoney.com.au

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk zipmoney zippay zipcredit merchantapi

21/12 2017

1.0.5

1.0.5.0 http://zipmoney.com.au

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk zipmoney zippay zipcredit merchantapi

21/12 2017

dev-release/1.0.5

dev-release/1.0.5 http://zipmoney.com.au

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk zipmoney zippay zipcredit merchantapi

22/08 2017

1.0.4

1.0.4.0 http://zipmoney.com.au

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk zipmoney zippay zipcredit merchantapi

11/07 2017

1.0.3

1.0.3.0 http://zipmoney.com.au

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk zipmoney zippay zipcredit merchantapi

02/05 2017

1.0.2

1.0.2.0 http://zipmoney.com.au

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk zipmoney zippay zipcredit merchantapi

02/05 2017

dev-release/1.0.2

dev-release/1.0.2 http://zipmoney.com.au

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk zipmoney zippay zipcredit merchantapi

02/05 2017

dev-feature/swagger-integration

dev-feature/swagger-integration http://zipmoney.com.au

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk zipmoney zippay zipcredit merchantapi

12/04 2017

1.0.1

1.0.1.0 http://zipmoney.com.au

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk zipmoney zippay zipcredit merchantapi

04/04 2017

1.0.0

1.0.0.0 http://zipmoney.com.au

  Sources   Download

proprietary

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *

 

The Development Requires

api php swagger sdk

24/03 2017

dev-feature/tests

dev-feature/tests http://swagger.io

  Sources   Download

proprietary

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

22/02 2017

dev-feature/api

dev-feature/api http://swagger.io

  Sources   Download

proprietary

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk