Library upgrades.
payum.http_clientservice was removed. Use gateway's config to overwrite it.payum.iso4217service was removed. Use gateway's config to overwrite it.payum.guzzle_clientservice was removed. Use gateway's config to overwrite it.
-
The way gateways are configured was changed. The
gateways_v2configuration option was renamed togateways. The oldgatewaysoption was removed. Examples https://gist.github.com/makasim/f1aef97c8d1f2994456a -
The
GatewayFactory,CoreGatewayFactory,ContainerAwareRegistryclasses were removed. -
Factory
paypal_express_checkout_nvprenamed topaypal_express_checkout -
Factory
paypal_pro_checkout_nvprenamed topaypal_pro_checkout
- The service
payum.security.token_factory_internalhas been removed. Usepayumservice to get token factory.
- Php minimum version is 5.5
- Symfony minimum version is 2.7
- Service
payum.buzz.clientis no longer available. Usepayum.http_clientone.
- Everything that were Payment and PaymentXX were renamed to Gateway and GatewayXXX.
- Order was renamed to Payment.
- [config]
paymentssection was renamed togateways.
be2bill_onsitepayment was renamed tobe2bill_offsite.omnipay_onsitepayment was renamed toomnipay_offsite.omnipaypayment was renamed toomnipay_direct.- tag attribute
contextwas renamed topayment. - [config]
contextssection was renamed topayments. - [factory] New method
loadwas added toPaymentFactoryInterface.
CreditCardTypewas removed use one from bridge.CreditCardExpirationDateTypewas removed use one from bridge.ObtainCreditCardActionwas removed use one from bridge.
InteractiveRequestListenerwas renamed toReplyToHttpResponseListener. The container service and related parameter was changed too. Now it takes replies and convert that to http response.- The
Requestpostfix was removed.
GetHttpQueryActionwas removed. UseGetHttpRequestActionfrom the bridge.ResponseInteractiveRequestwas removed. Use one from the bridge.
-
Minimum Symfony 2.3 version required.
-
Payment factory does not create action services any more. Instead, it uses actions defined in payment/foo.xml by tag.
-
Payment factories configurations were simplified. Sub options
api.optionswere moved to the root, section was removed.before:
payum: a_context: a_factory: api: options: foo: foo bar: bar
after:
payum: a_context: a_factory: foo: foo bar: bar
-
be2billpayment factory does not provide support of onsite payments any more, usebe2bill_onsitefactory instead. -
[config]
storagessection inside a context was removed. Use newstoragessection in the rootpayum(by default storages are added to all payments). Here's how to migrate example:before:
payum: a_context: a_factory: storages: Acme\PaymentBundle\Entity\PaymentDetails: doctrine: driver: orm
after:
payum: storages: Acme\PaymentBundle\Entity\PaymentDetails: payment: contexts: [a_factory] doctrine: orm a_context: a_factory:
-
[factory] The signature of
StorageFactoryInterface::createmethod was changed. SecondcontextNameand fourthpaymentIdarguments were removed.
TokenFactory::createTokenForRoutewas renamed tocreateToken.
-
AbstractPaymentFactory::addCommonExtensions method signature has been changed.
-
AbstractPaymentFactory::addCommonActions method signature has been changed.
-
TokenManagerwas removed. Its work was partially moved toTokenFactoryandHttpRequestVerifier. -
CaptureTokenizedDetailsRequestwas removed, usePayum\Request\SecuredCaptureRequestinstead. -
captureurl was changed if you still want use old one addpayum_deprecated_capture_do. -
notifyurl was changed if you still want use old one addpayum_deprecated_notify_do. -
syncurl was changed if you still want use old one addpayum_deprecated_sync_do. -
bundle configuration was changed. Now you have to configure
payum.securitysection.before:
payum: contexts: foo: storages: Acme\PaymentBundle\Entity\TokenizedDetails: filesystem: storage_dir: %kernel.root_dir%/Resources/payments id_property: token
after:
payum: security: token_storage: Acme\PaymentBundle\Entity\PayumSecurityToken: filesystem: storage_dir: %kernel.root_dir%/Resources/payments id_property: hash
- Storage factory names has been changed. The
_storagepost fix removed. For exampledoctrine_storagenowdoctrine. - Payment factory names has been changed. The
_paymentpost fix removed. For exampleomnipay_paymentnowomnipay. StorageFactoryInterface::createmethod signature has been changed. Now it requires additional parametermodelClass.- Doctrine storage configuration does not have
model_classoption any more. - Filesystem storage configuration does not have
model_classoption any more. LazyContextwas removed in favor ofContainerAwareRegistry.ContextInterfacewas removed in favor ofContainerAwareRegistry.ContextRegistrywas removed in favor ofContainerAwareRegistry.payumservice now instance ofContainerAwareRegistryclass. So the methodgetContextis not present any more.
capture_interactive_controlleroption removed from config. NowInteractiveRequestListenerdoes the job.status_request_classoption was removed.capture_finished_controlleroption was removed.ContextInterface::createStatusRequestmethod was removed.ContextInterface::getCaptureFinishedControllermethod was removed.CaptureControllerwas removed. Use your own.
- The option
payum.context.a_context.xxx_payment.create_instruction_from_model_actionwas removed. use...actionsinstead. CaptureController::doCapturemethod argumentmodelIdwas renamed tomodel. The route is also updated.