jms/payment-core-bundle
Symfony bundle providing a unified API for processing payments across multiple providers. Includes persistence for payments/transactions, retryable transaction management, encryption of sensitive data, and built-in support for many backends with easy extensibility.
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)
{
}
JMS\Payment\CoreBundle\Model\ExtendedDataInterface has changed. If any of your classes implement this interface, you need to update them accordingly:
mayBePersisted method$persist parameter to set methodJMS\Payment\CoreBundle\EntityExtendedDataType::convertToDatabaseValue now throws an exception when attempting to convert an object which does not implement JMS\Payment\CoreBundle\Model\ExtendedDataInterface.secret or encryption.secret configuration options are set.defuse_php_encryption is now the default encryption provider, unless when using the secret configuration option, in which case the default is set to mcrypt.payment.encryption_service has been deprecated and is now an alias to payment.encryption.mcrypt. Parameters specified for payment.encryption_service are automatically set for payment.encryption.mcrypt so no changes are required in service configuration until payment.encryption_service is removed in 2.0.secret configuration option has been deprecated in favor of encryption.secret and will be removed in 2.0. Please note that if you start using encryption.secret you also need to set encryption.provider to mcrypt since mcrypt is not the default when using the encryption.* options.JMS\Payment\CoreBundle\Cryptography\MCryptEncryptionService has been deprecated and will be removed in 2.0 (mcrypt has 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 from mcrypt.method_options and choice_options to form. See the documentation for more information.defuse_php_encryption.mcrypt (not recommended since it will be removed in PHP 7.2) and defuse_php_encryption.1.2.*.1.2.0 of 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.<2.3. In fact, It's not even guaranteed that versions earlier than 2.3 were ever supported. If you still want to try your chances, use 1.1.*.Bugfixes:
doctrine/common not being required on PHP 5.3New payment backends (through third-party bundles):
This release makes some small enhancements:
We also have support for new payment backends (through third-party bundles):
How can I help you explore Laravel packages today?