- NEW: Add method to get publishable keys
- Fix retrieve payment function when id_payment is not set
- Update certificate
- NEW: Add AccountingReport class to handle new API endpoint
- NEW: Add Oney Payment Simulations
- NEW: Deprecated Payplug::setSecretKey function, use Payplug::init instead
- NEW: API version should now be specified explicitly from module
- NEW: Improve Payplug setSecretKey with init method
- NEW: Excluded configuration API_VERSION versionning, it will be send from the apps nowadays
- Major: Replace customer by shipping and billing to be compliant with PSD2.
- NEW: Add versionning with new API_VERSION parameter.
- NEW: Add deferred payments.
- NEW: Add installment plans.
- Bugfix: Fix packagist bundle.
- NEW: Remove classes and methods specific to customer
- NEW: Add Authentication class for method specific to login and account permissions
- NEW: Add a method to patch payment
- NEW: Support for __isset magic method in resources. This should bring Twig support. (Thanks oservieres)
- NEW: Add a method to specify custom User-Agent products.
-
NEW: Support for Customer/Cards. (see official documentation)
-
NEW: Payment objects can now be aborted.
$payment->abort(); -
Breaking change: Drop data key in objects collections (e.g. list of payments/list of refunds):
$payments = \Payplug\Payment::listPayments(); // $payment = $payments['data'][0]; // BEFORE $payment = $payments[0]; // NEW BEHAVIOR $refunds = \Payplug\Refund::listRefunds($payment); // $refund = $refunds['data'][0]; // BEFORE $refund = $refunds[0]; // NEW BEHAVIOR -
Breaking change: Drop deprecated classes PayPlugException and PayPlugServerException (with two uppercase letters in PayPlug). If you use PayplugException* and PayplugServerException* classes (with one uppercase letter in Payplug), you have nothing to do.
-
NEW: This library is now under MIT Licence (Issue #4).