Library upgrades.
payum.http_client
service was removed. Use gateway's config to overwrite it.payum.iso4217
service was removed. Use gateway's config to overwrite it.payum.guzzle_client
service was removed. Use gateway's config to overwrite it.
-
The way gateways are configured was changed. The
gateways_v2
configuration option was renamed togateways
. The oldgateways
option was removed. Examples https://gist.github.com/makasim/f1aef97c8d1f2994456a -
The
GatewayFactory
,CoreGatewayFactory
,ContainerAwareRegistry
classes were removed. -
Factory
paypal_express_checkout_nvp
renamed topaypal_express_checkout
-
Factory
paypal_pro_checkout_nvp
renamed topaypal_pro_checkout
- The service
payum.security.token_factory_internal
has been removed. Usepayum
service to get token factory.
- Php minimum version is 5.5
- Symfony minimum version is 2.7
- Service
payum.buzz.client
is no longer available. Usepayum.http_client
one.
- Everything that were Payment and PaymentXX were renamed to Gateway and GatewayXXX.
- Order was renamed to Payment.
- [config]
payments
section was renamed togateways
.
be2bill_onsite
payment was renamed tobe2bill_offsite
.omnipay_onsite
payment was renamed toomnipay_offsite
.omnipay
payment was renamed toomnipay_direct
.- tag attribute
context
was renamed topayment
. - [config]
contexts
section was renamed topayments
. - [factory] New method
load
was added toPaymentFactoryInterface
.
CreditCardType
was removed use one from bridge.CreditCardExpirationDateType
was removed use one from bridge.ObtainCreditCardAction
was removed use one from bridge.
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.