Skip to content

Releases: Mangopay/mangopay2-php-sdk

3.6.0

10 Jun 18:11
Compare
Choose a tag to compare

Added

We have added a new feature recurring payments dedicated to clients needing to charge a card repeatedly, such as subscriptions or payments installments.

You can start testing in sandbox, to help you define your workflow. This release provides the first elements of the full feature.

This feature is not yet available in production and you need to contact the Support team to request access.

3.5.0

27 May 18:48
Compare
Choose a tag to compare

Added

Instant payment

Mangopay has introduced few months ago the instant payment mode. It allows payouts (transfer from wallet to user bank account) to be processed within 25 seconds, rather than the 48 hours for a standard payout.

We have added a new feature in the PHP SDK. You can now verify the mode applied to an instant payment.

$payOutGet = $this->_api->PayOuts->GetBankwire($payOut->Id);
// where $payOut->Id is the id of an existing payout

Please note that this feature must be authorized and activated by MANGOPAY. More information here.

Accepted PRs

  • Improved documentation around ubo declaration reason
  • ResponseError object improvement

3.4.2

12 May 08:08
ae60c61
Compare
Choose a tag to compare

Bug fixes

3.4.1

12 May 07:48
Compare
Choose a tag to compare

Changed

  • Updated the links to the MANGOPAY API documentation in the demo

3.4.0

11 May 08:37
e62702d
Compare
Choose a tag to compare

Fixed

IBAN for testing purposes

⚠️ IBAN provided for testing purpose should never be used outside of a testing environement!

More information about how to test payments, click here.

Others

  • Fix Shipping was missing Libraries\Dto thank you @ericabouaf
  • Fix BankAccount IBAN reference for tests
  • FIX path oauth/token erreur 404 url not found. Thank you @rachedbelhadj

Added

New events for PreAuthorization

Some of you use a lot the PreAuthorization feature of our API. To make your life easier, we have added three new events :

  • PREAUTHORIZATION_CREATED
  • PREAUTHORIZATION_SUCCEEDED
  • PREAUTHORIZATION_FAILED

The goal is to help you monitor a PreAuthorization with a webhook.

Example: If a PreAuthorization is desynchronized, when the status is updated, you will be able to know it.

PSR4 / PSR12 compliance

  • Thanks to @MockingMagician, the SDK is PSR4 / PSR12 compliant. That help your IDE and make sure you can run tests on case-sensitive system. Plus, docker environments has been added to run tests locally in all PHP major versions.

Changed

  • To better illustrate the fact that Rate Limiting Reset is a timestamp, we have change $rateLimits[0]->ResetTimeMillis to $rateLimits[0]->ResetTimeTimestamp

3.3.0

25 Mar 10:40
Compare
Choose a tag to compare

Added

On demand feature for 3DSv2

This on-demand feature is for testing purposes only and will not be available in production

Request

We've added a new parameter Requested3DSVersion (not mandatory) that allows you to choose between versions of 3DS protocols (managed by the parameter SecureMode). Two values are available:

  • V1
  • V2_1

If nothing is sent, the flow will be 3DS V1.

The Requested3DSVersion may be included on all calls to the following endpoints:

  • /preauthorizations/card/direct
  • /payins/card/direct

Response

In the API response, the Requested3DSVersion will show the value you requested:

  • V1
  • V2_1
  • null – indicates that nothing was requested

The parameter Applied3DSVersion shows you the version of the 3DS protocol used. Two values are possible:

  • V1
  • V2_1

Fixed

  • Fixed UBO declaration by adding missing UserId
  • Added missing Billing in /payins/card/web
  • Test on IpAddress presence in /payins/card/direct

3.2.0

22 Feb 07:34
Compare
Choose a tag to compare

Added

  • 3DS2 integration with Shipping and Billing objects, including FirstName and a LastName fields
    The objects Billing and Shipping may be included on all calls to the following endpoints:
    • /preauthorizations/card/direct
    • /payins/card/direct
    • /payins/card/web
  • Activate Instant Payment for payouts by adding a new parameter PayoutModeRequested on the following endpoint /payouts/bankwire
    • The new parameter PayoutModeRequested can take two differents values : "INSTANT_PAYMENT" or "STANDARD" (STANDARD = the way we procede normaly a payout request)
    • This new parameter is not mandatory and if empty or not present, the payout will be "STANDARD" by default
    • Instant Payment is in beta all over Europe - SEPA region

Fixed

  • Fix inverted params for PHP compatibility : Due to compatibility issues with newer versions of PHP we have inverted params in certain methods, including constructor, please check the release code for further detail 🔄
  • Fix method ScopeBlocked for blocked status
  • Fix BrowserInfo class

Added IpAddress and BrowserInfo parameters, 'NO_CHOICE' value for the SecureMode

18 Dec 17:51
Compare
Choose a tag to compare

Update 3.1.6 🆙

Added IpAddress and BrowserInfo parameters to the following endpoints and corresponding objects

  • /payins/card/direct
  • /preauthorizations/card/direct

Added 'NO_CHOICE' value for the SecureMode parameter

Regulatory endpoint and hook, Client bank account and payout methods, Removed testing versions

17 Dec 10:49
Compare
Choose a tag to compare

Update 3.1.5 🆙

Removed testing older PHP testing versions ✂️
Added 'Regulatory' endpoint to allow checks of User Block Status 🚫
Added support for Regulatory -> Blocked Status Hooks 📞
Added methods for creating Client bank accounts and client payouts Ⓜ️

Release includes new PreAuthorizationId/transactions and several fixes - 3.1.4

23 Oct 15:28
Compare
Choose a tag to compare

Update 🏷️ 3.1.4

🔚 New endpoint : GET .../v2.01/ClientId/preauthorizations/PreAuthorizationId/transactions/ which allows multiple transactions to be listed
🧪 Testing config changes for TLS, this was blocking a part of the deploy process
🧮 Sorting::_sortFields changed to avoid an error when calling GetSortParameter()
♻️ Changed ignore phpunit-cache and minor "Field" typo
🖍️ removed php 5.4 and 5.5 from travis and updated curl ssl version