InteractiveRequestListener
was renamed toReplyToHttpResponseListener
. The container service and related parameter was changed too. Now it takes replies and convert that to http response.- The
Request
postfix was removed.
GetHttpQueryAction
was removed. UseGetHttpRequestAction
from the bridge.ResponseInteractiveRequest
was 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.options
were 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
-
be2bill
payment factory does not provide support of onsite payments any more, usebe2bill_onsite
factory instead. -
[config]
storages
section inside a context was removed. Use newstorages
section 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::create
method was changed. SecondcontextName
and fourthpaymentId
arguments were removed.
TokenFactory::createTokenForRoute
was renamed tocreateToken
.
-
AbstractPaymentFactory::addCommonExtensions method signature has been changed.
-
AbstractPaymentFactory::addCommonActions method signature has been changed.
-
TokenManager
was removed. Its work was partially moved toTokenFactory
andHttpRequestVerifier
. -
CaptureTokenizedDetailsRequest
was removed, usePayum\Request\SecuredCaptureRequest
instead. -
capture
url was changed if you still want use old one addpayum_deprecated_capture_do
. -
notify
url was changed if you still want use old one addpayum_deprecated_notify_do
. -
sync
url was changed if you still want use old one addpayum_deprecated_sync_do
. -
bundle configuration was changed. Now you have to configure
payum.security
section.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
_storage
post fix removed. For exampledoctrine_storage
nowdoctrine
. - Payment factory names has been changed. The
_payment
post fix removed. For exampleomnipay_payment
nowomnipay
. StorageFactoryInterface::create
method signature has been changed. Now it requires additional parametermodelClass
.- Doctrine storage configuration does not have
model_class
option any more. - Filesystem storage configuration does not have
model_class
option any more. LazyContext
was removed in favor ofContainerAwareRegistry
.ContextInterface
was removed in favor ofContainerAwareRegistry
.ContextRegistry
was removed in favor ofContainerAwareRegistry
.payum
service now instance ofContainerAwareRegistry
class. So the methodgetContext
is not present any more.
capture_interactive_controller
option removed from config. NowInteractiveRequestListener
does the job.status_request_class
option was removed.capture_finished_controller
option was removed.ContextInterface::createStatusRequest
method was removed.ContextInterface::getCaptureFinishedController
method was removed.CaptureController
was removed. Use your own.
- The option
payum.context.a_context.xxx_payment.create_instruction_from_model_action
was removed. use...actions
instead. CaptureController::doCapture
method argumentmodelId
was renamed tomodel
. The route is also updated.