luxplus / mobilepay
Luxplus implementation of MobilePay API Subscription 2.0.0.
Installs: 49 193
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 5
Forks: 1
Open Issues: 0
Requires
- php: >=7.0
- nesbot/carbon: ^1.22
Requires (Dev)
- nesbot/carbon: ^1.22
- symfony/var-dumper: ^3.1
- vlucas/phpdotenv: ^2.4
This package is not auto-updated.
Last update: 2024-11-10 03:16:19 UTC
README
-
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.