Skip to content

Releases: Mangopay/mangopay2-php-sdk

3.10.0

19 Nov 08:36
Compare
Choose a tag to compare

Added

We are now providing new hooks for our new feature Instant payouts :

  • INSTANT_PAYOUT_SUCCEEDED
  • INSTANT_PAYOUT_FALLBACKED

It will allow you to trigger an action depends on the Instant Payout treatment.

3.9.0

20 Oct 14:24
Compare
Choose a tag to compare

Added

You can now change the status to "ENDED" for a recurring payment.

Fixed

  • "Status" is now available in the response when you request a recurring payment registration.
  • Fix recurring PayIn CIT / MIT create methods return doctype

3.8.0

11 Oct 09:14
Compare
Choose a tag to compare

Added

Payconiq

As requested by numerous clients, we are now providing Payconiq as a new mean-of-payment. To request access, please contact MANGOPAY.

Flags for KYC documents

We provide more information regarding refused KYC documents. Therefore it will be easier for you to adapt your app behavior and help your end user.

You are now able to see the exact explanation thanks to a new parameter called “Flags”.

It has been added to

MangoPay::KycDocument.fetch(new_natural_user['Id'], new_document['Id'])

It will display one or several error codes that provide the reason(s) why your document validation has failed. These error codes description are available here.

3.7.1

10 Aug 14:22
Compare
Choose a tag to compare

Fixed

  • Better support of more PHPUnit versions
  • Cleanup the vendor bundle, to reduce the size of the SDK

Thanks williamdes for your help

3.7.0

10 Aug 09:19
e1a64f0
Compare
Choose a tag to compare

Fixed

  • ChargeDate has been added for PayInPaymentDetailsDirectDebit
  • Change FallbackReason parameter's type to object in PayOutPaymentDetailsBankWire

Added

  • You can now update and view a Recurring PayIn Registration object. To know more about this feature, please consult the documentation here.
  • To improve recurring payments, we have added new parameters for CIT : DebitedFunds & Fees. To know more about this feature, please consult the documentation here

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