Download the PHP package mynameiszanders/cashflows without Composer
On this page you can find all versions of the php package mynameiszanders/cashflows. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mynameiszanders/cashflows
More information about mynameiszanders/cashflows
Files in mynameiszanders/cashflows
Package cashflows
Short Description Cashflows PHP API Library.
License MIT
Homepage https://github.com/mynameiszanders/cashflows
Informations about the package cashflows
Cashflows PHP API Library
PHP library for communicating with Cashflows' API, for Nosco Systems by Zander Baldwin, version 1.0.0-RC1
.
Available API Requests
Although each request object can be instantiated stand-alone from its respective class, it's easier to create it through
a dedicated method in the Client (Nosco\Cashflows\Client
) object - which automatically sets the Auth ID and password
for each request.
The available dedicated methods, and their corresponding request classes, are:
Dedicated Method | Request Object Class |
---|---|
paymentRequest() |
Nosco\Cashflows\Request\Payment . |
mobilePaymentRequest() |
Nosco\Cashflows\Request\Payment\Mobile . |
continuousPaymentRequest() |
Nosco\Cashflows\Request\Payment\Continuous . |
alternativeRecurringPaymentRequest() |
Nosco\Cashflows\Request\Payment\AlternativeRecurring . |
voidRequest() |
Nosco\Cashflows\Request\Void . |
refundRequest() |
Nosco\Cashflows\Request\Refund . |
verificationRequest() |
Nosco\Cashflows\Request\Verification . |
Sending Requests
Each request object has a set of attributes that must be filled-in before the request can be sent, and these are documented in Cashflows' Remote API Integration Guide (version 1.7 April 2014).
The attributes can be entered using the attribute()
method of the request object, and the API call can be sent with
the send()
method. Once an API call is successful, an Nosco\Cashflows\Response\Authorised
response object is
returned from the send()
method.
Catching Errors
The following is the Exception tree; only exception classes in leaf nodes are thrown, all others are for group-catching.
All exceptions are prefixed with the namespace Nosco\Cashflows\Exceptions
.
BaseException
never thrown (group-catch only).Validation
.Transport
.CashflowsSystem
.Response
never thrown (group-catch only).Response\InvalidResponse
.Response\NotAuthorised
never thrown (group-catch only).Response\NotAuthorised\Blocked
.Response\NotAuthorised\Cancelled
.Response\NotAuthorised\Declined
.Response\NotAuthorised\InvalidRequest
.