PHPackages                             noetix/pin-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. noetix/pin-php

ActiveLibrary[Payment Processing](/categories/payments)

noetix/pin-php
==============

Pin Payment API Library

v2.0.1(10y ago)17836.8k8[1 PRs](https://github.com/noetix/pin-php/pulls)1MITPHPPHP &gt;=5.5.9CI failing

Since Aug 6Pushed 4y ago5 watchersCompare

[ Source](https://github.com/noetix/pin-php)[ Packagist](https://packagist.org/packages/noetix/pin-php)[ Docs](https://github.com/noetix/pin-php)[ RSS](/packages/noetix-pin-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (3)Versions (11)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/c2e4094e74cc39543e098e2b12486549eaf394e960221bd43f6921bb2086857d/68747470733a2f2f706f7365722e707567782e6f72672f6e6f657469782f70696e2d7068702f762f737461626c65)](https://packagist.org/packages/noetix/pin-php)[![Latest Unstable Version](https://camo.githubusercontent.com/c772f87a7d694038de007f5fc89a919b992e4fd92649fd1f8743e7668555b911/68747470733a2f2f706f7365722e707567782e6f72672f6e6f657469782f70696e2d7068702f762f756e737461626c65)](https://packagist.org/packages/noetix/pin-php)[![Total Downloads](https://camo.githubusercontent.com/b326d6870459afa57d2ee41a1ac3a6d078a1679a1bad91a42400db2986ee6ef4/68747470733a2f2f706f7365722e707567782e6f72672f6e6f657469782f70696e2d7068702f646f776e6c6f616473)](https://packagist.org/packages/noetix/pin-php)[![Build Status](https://camo.githubusercontent.com/4d3a8652fe72b11fe19c0b7133305c45526014321553c0467294aa15ce81da3b/68747470733a2f2f7472617669732d63692e6f72672f6e6f657469782f70696e2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/noetix/pin-php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2f5c9e5accee1f6648f0becaed84c63aed086f37afa729be9c5f61704b4fd298/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6f657469782f70696e2d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/noetix/pin-php/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/6cf15d17602671e3943437441b4becfe3cfcf25c638bc440a4cb69199c02ea41/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61316162323338352d383865632d343036392d393665322d3330343263633037346465622f6d696e692e706e67)](https://insight.sensiolabs.com/projects/a1ab2385-88ec-4069-96e2-3042cc074deb)[![License](https://camo.githubusercontent.com/d8590db910c2534b6ec717ab5467e345dd7e21413e9cd5ea89f6f7972cb55f96/68747470733a2f2f706f7365722e707567782e6f72672f6e6f657469782f70696e2d7068702f6c6963656e7365)](https://packagist.org/packages/noetix/pin-php)

About
=====

[](#about)

[Pin](https://pin.net.au/) is Australia’s first all-in-one payment API.

- PHP 5.3+ Library
- Curl Transport (via [Buzz](https://github.com/kriswallsmith/Buzz))

Installation
============

[](#installation)

Download the project from GitHub. Once downloaded, you'll need to use [Composer](http://getcomposer.org/).

Make sure to include the class autoload file.

```
include 'vendor/autoload.php';
```

Examples
========

[](#examples)

Charges
-------

[](#charges)

This example will charge $4.00 (API requires amount to be provided in cents) against a test credit card on the *live* API. To use the testing/sandbox API, see the example below.

This is an example using the Pin Payments [Charges API](https://pin.net.au/docs/api/charges):

```
