Releases: schmittjoh/JMSPaymentCoreBundle
Releases · schmittjoh/JMSPaymentCoreBundle
Fix issue with Symfony versions earlier than 3.3
Support for Symfony 4
Added
- Added support for Symfony 4
- Added service aliases for auto-wiring
Since services on Symfony 4 are private by default, instead of doing:
public function someAction($id)
{
$ppc = $this->container->get('payment.plugin_controller');
}you should instead inject JMS\Payment\CoreBundle\PluginController\PluginController into your controller actions:
use JMS\Payment\CoreBundle\PluginController\PluginController;
public function someAction($id, PluginController $ppc)
{
}Changed
- Updated documentation to Symfony 4 directory structure
Removed
- Removed support for PHP versions earlier than 5.6.
Use defuse/php-encryption as the default encryption provider | Deprecate Mcrypt | Other improvements
Use defuse/php-encryption as the default encryption provider | Deprecate Mcrypt | Other improvements
Changed
JMS\Payment\CoreBundle\Model\ExtendedDataInterfacehas changed. If any of your classes implement this interface, you need to update them accordingly:- Added missing
mayBePersistedmethod - Added missing
$persistparameter tosetmethod
- Added missing
JMS\Payment\CoreBundle\EntityExtendedDataType::convertToDatabaseValuenow throws an exception when attempting to convert an object which does not implementJMS\Payment\CoreBundle\Model\ExtendedDataInterface.- Encryption is now optional and disabled by default, unless the
secretorencryption.secretconfiguration options are set. defuse_php_encryptionis now the default encryption provider, unless when using thesecretconfiguration option, in which case the default is set tomcrypt.- The EntityManager is no longer closed when an Exception is thrown (#145)
Deprecated
- The service
payment.encryption_servicehas been deprecated and is now an alias topayment.encryption.mcrypt. Parameters specified forpayment.encryption_serviceare automatically set forpayment.encryption.mcryptso no changes are required in service configuration untilpayment.encryption_serviceis removed in 2.0. - The
secretconfiguration option has been deprecated in favor ofencryption.secretand will be removed in 2.0. Please note that if you start usingencryption.secretyou also need to setencryption.providertomcryptsince mcrypt is not the default when using theencryption.*options. JMS\Payment\CoreBundle\Cryptography\MCryptEncryptionServicehas been deprecated and will be removed in 2.0 (mcrypthas been deprecated in PHP 7.1 and is removed in PHP 7.2). Refer to http://jmspaymentcorebundle.readthedocs.io/en/stable/guides/mcrypt.html for instructions on how to migrate away frommcrypt.
Added
- Added
method_optionsandchoice_optionsto form. See the documentation for more information. - Added a guides section to the documentation
- Added support for custom encryption providers.
- Added support for data encryption with defuse/php-encryption.
- Added console command to generate an encryption key for use with
defuse_php_encryption. - Added ability to configure which encryption provider should be used. Current available options are
mcrypt(not recommended since it will be removed in PHP 7.2) anddefuse_php_encryption.
Removed
- Removed support for PHP 5.3. If you're still using PHP 5.3, please consider upgrading since it reached End Of Life in August 2014. Otherwise, use
1.2.*.
Support for Symfony 3
Added
- Added support for Symfony 3.0. Note that Symfony 3.0 introduces BC breaks. This means that you'll probably need to do more than simply updating to version
1.2.0of this bundle for your code to keep working under Symfony 3.0. Please see Symfony's Upgrade Guide for information on what you need to change. - [Docs] More clear and detailed setup instructions
- [Docs] Much more detailed guide on how to accept payments
- [Docs] Update examples for Symfony 3
Removed
- Removed support for Symfony
<2.3. In fact, It's not even guaranteed that versions earlier than2.3were ever supported. If you still want to try your chances, use1.1.*.
Bugfixes and support for more payment providers
Bugfixes:
- Fixed issue that caused boot to fail when a database connection was not available (#156)
- Fixed issue related to
doctrine/commonnot being required on PHP 5.3 - Remove unneeded composer dependencies
- Require specific versions of composer dependencies
New payment backends (through third-party bundles):
- Stripe
- Webpay
- YandexKassa
Small Enhancements & Support for more Payment Providers
This release makes some small enhancements:
- ChoosePaymentForm: Amount can now be a callable
- Result: Exceptions thrown in plugins are now available even if the transaction is successful
We also have support for new payment backends (through third-party bundles):
- Paymill
- Ayden
- Mollie
- MultiSafepay
- Robokassa
- Be2bill
Initial Release
Merge pull request #116 from jeremyFreeAgent/composer Added branch alias