Luxplus implementation of MobilePay API Subscription 2.0.0.

v1.2.5 2017-12-27 15:07 UTC

This package is not auto-updated.

Last update: 2022-11-26 17:27:46 UTC


  • 7th July

    • Initial Luxplus implementation of MobilePay Subscription API 1.1.1.
  • 10th August:

    • Implementation of MobilePay Subscription API 1.2.6 - Refunds. 2 new methods: getRefunds() and postRefunds().
  • 11th August:

    • Fixed bug in path from /recurringpayments-restapi/api/ to /subscriptions/api/ for Refunds.
  • 14th August:

    • Fixed bug in the CreateRefundRequest toJSON() method.
    • Implemented links-parameter in CreateOnOffPaymentRequest.
  • 23rd August:

    • Changed path from /recurringpayments-restapi/api/ to /subscriptions/api/ across the board.
  • 18th September:

    • Updated MobilePay Subscription API to use 2.0.0
    • Implemented postPaymentRequestsBatch() method, which takes an array of CreatePaymentRequest instances.
    • Changed the postPaymentRequests() method to accept an instance of CreatePaymentRequest OR an array of CreatePaymentRequest (it calls postPaymentRequestsBatch() regardless).
    • Removed the abstract method toJSON() in the abstract class Request and replaced it with the JsonSerializable interface. The jsonSerialize() method returns an array instead of a json encoded string.
    • Added the following exception classes:
      • MobilePayException extends Exception
      • PreconditionFailedException extends MobilePayException
      • NotFoundException extends MobilePayException
      • InternalServerErrorException extends MobilePayException
      • IdNotProvidedException extends MobilePayException
      • BadRequestException extends MobilePayException
      • CurlException Extends Exception
    • Rewrote the error handling code with proper exceptions and error messages in the MobilePayConnection class connect() method and a few other places.
    • Added ErrorResponse class to better handle the HTTP code response errors.
    • Added possibility to supply correlation id with a call.
    • Added a createGUID() method in MobilePaySubscriptionClient to use for the correlation id.
  • 27th December:

    • Fixed bug in MobilePayConnection post()-method introduced in the update from the 18th September. Introduced by postPaymentRequestsBatch.
  • 23rd April 2018

    • Fixed issue in ErrorResponse and added a getFullResponse() method for logging purposes.
  • 28th April 2018

    • Fixed HttpResponseException bug.
  • 29th May 2018

    • The createSimpleInstance-method now instantiates with expirationTimeoutMinutes of 2 weeks instead of 5 minutes.
    • Removed unused dependencies.