Skip to content

Releases: gocardless/gocardless-pro-php

v0.11.0

27 Mar 16:49
Compare
Choose a tag to compare
  • Add payout_type to Payout resource
  • Update documentation

v0.10.1

20 Feb 14:54
Compare
Choose a tag to compare
  • Update version
  • Update documentation URL

v0.10.0

20 Feb 11:51
Compare
Choose a tag to compare
  • Adds scheme_identifiers and logo_url to Creditor resource
  • Updates documentation

v0.9.4

03 Aug 13:21
Compare
Choose a tag to compare

New features

  • Support payments_require_approval on Mandates
  • Support arrival_date and deducted_fees on Payouts

v0.9.3

21 Jan 11:52
Compare
Choose a tag to compare
v0.9.3 Pre-release
Pre-release

Fixes

  • Fix #5 - Better hinting for IDEs using @return types
  • Fix #7 - Issue where some validation errors would cause exceptions
  • Fix #6 - Exception documentation was incorrect

v0.9.2

19 Nov 14:22
Compare
Choose a tag to compare
v0.9.2 Pre-release
Pre-release

Fixes

  • Resolves an issue where package_path was being incorrectly generated

v0.9.1

03 Nov 11:50
Compare
Choose a tag to compare
v0.9.1 Pre-release
Pre-release

This release uses the bundled certificate for making requests.

v0.9.0

30 Oct 13:10
Compare
Choose a tag to compare
v0.9.0 Pre-release
Pre-release

This release brings us closer to a v1.0.0 release and brings the general interface of the client in line with the existing ruby and python clients.

Notable Changes:

Params

Query and request params as now nested under a params key.

For example:

$customers = $client->customers()->list(['params' => ['limit' => 400]]);

Exceptions

We've renamed the exception classes:

  • GoCardlessError -> GoCardlessProException
  • InvalidApiUsageError -> InvalidApiUsageException
  • InvalidStateError -> InvalidStateException
  • ValidationFailedError -> ValidationFailedException

and altered the available api error methods slightly:

print_r($e->api_error)
/*
* stdClass Object
* (
*     [message] => Payment cannot be cancelled
*     [errors] => Array
*         (
*             [0] => stdClass Object
*                 (
*                     [reason] => cancellation_failed
*                     [message] => Payment cannot be cancelled
*                 )
* 
*         )
* 
*     [documentation_url] => https://developer.gocardless.com/pro#cancellation_failed
*     [type] => invalid_state
*     [request_id] => 262edcc8-8fdc-4b89-8040-c3d066cea430
*     [code] => 422
* )
*/

$e->getType() // invalid_state
$e->getErrors() // Array of API errors
$e->getDocumentationUrl() // https://developer.gocardless.com/pro#cancellation_failed
$e->getRequestId() // 262edcc8-8fdc-4b89-8040-c3d066cea431
$e->getMessage() // Payment cannot be cancelled
$e->getCode() // 422

v0.3.1

05 Aug 17:40
Compare
Choose a tag to compare
v0.3.1 Pre-release
Pre-release

Fix SSL issues and cancel endpoints

v0.3.0

06 Jul 16:36
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

Support for GoCardless Pro API version 2015-07-06, along with the bank account lookup endpoint.