Skip to content

Latest commit

 

History

History
65 lines (54 loc) · 2.77 KB

UPGRADE.md

File metadata and controls

65 lines (54 loc) · 2.77 KB

0.5 to 0.6

  • AbstractPaymentFactory::addCommonExtensions method signature has been changed.
  • AbstractPaymentFactory::addCommonActions method signature has been changed.
  • TokenManager was removed. Its work was partially moved to TokenFactory and HttpRequestVerifier.
  • CaptureTokenizedDetailsRequest was removed, use Payum\Request\SecuredCaptureRequest instead.
  • capture url was changed if you still want use old one add payum_deprecated_capture_do.
  • notify url was changed if you still want use old one add payum_deprecated_notify_do.
  • sync url was changed if you still want use old one add payum_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

0.3 to 0.5

  • Storage factory names has been changed. The _storage post fix removed. For example doctrine_storage now doctrine.
  • Payment factory names has been changed. The _payment post fix removed. For example omnipay_payment now omnipay.
  • StorageFactoryInterface::create method signature has been changed. Now it requires additional parameter modelClass.
  • 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 of ContainerAwareRegistry.
  • ContextInterface was removed in favor of ContainerAwareRegistry.
  • ContextRegistry was removed in favor of ContainerAwareRegistry.
  • payum service now instance of ContainerAwareRegistry class. So the method getContext is not present any more.

0.2 to 0.3

  • capture_interactive_controller option removed from config. Now InteractiveRequestListener 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.

0.1 to 0.2

  • The option payum.context.a_context.xxx_payment.create_instruction_from_model_action was removed. use ...actions instead.
  • CaptureController::doCapture method argument modelId was renamed to model. The route is also updated.