Payum
Source🩷 Sponsor
  • Payum docs
  • Get started
  • Instant payment notification
  • ISO4217 or Currency Details
  • The Architecture
  • Your order integration
  • Supported Gateways
  • Storages
  • Debugging
  • Logging
  • Event Dispatcher
  • Configure gateways in backend
  • Working with sensitive information
  • Encrypt gateway configs stored in database
  • Mask credit card number
  • Develop a custom Payum gateway
  • Troubleshooting
  • Frameworks and e-commerce integration.
  • Payum vs Omnipay
  • How to contribute from sub repository
  • Examples
    • Paypal: Create Gateway
    • Paypal: Redirects
    • Handle redirect
    • Get Status
    • Stripe Js: Create gateway
    • Capture Payment
    • Get Http Reponse
    • Capture Credit Card
    • Authorise script
    • Capture Script
    • Done Script
    • index
    • Notify script
    • Payout Script
    • Refund script
  • Authorize-NET
    • AIM
      • Authorize.Net AIM: Get started
  • Be2Bill
    • Be2Bill Direct
    • Be2Bill Offsite
  • jms-payment-bridge
    • Get Started
  • Klarna
    • Checkout
      • Klarna Checkout: Get Started
    • Invoice
      • Klarna Invoice: Get Started
  • Laravel
    • Get Started
    • Blade Templating
    • Eloquent Storage
    • Payment done controller
    • Store gateway config in database
    • Examples
  • Offline
    • Get Started
  • Payex
    • Get Started
  • Paypal
    • Express Checkout
      • Get Started
      • Authorize order
      • Authorize token custom query parameters
      • Cancel recurring payment
      • Confirm order step
      • Recurring Payments Basics
    • IPN
      • Get Started
    • Masspay
      • Get Started
    • Pro Checkout
      • Get Started
    • Pro Hosted
      • Get Started
    • REST
      • Get Started
      • Credit Card Purchase
  • Silex
    • Get Started
    • Payment Done Controller
  • Sofort
    • Get Started
    • Disable Notifications
  • Stripe
    • Checkout
    • Direct
    • Stripe.js
    • Raw Capture
    • Store card and use later
    • Subscription Billing
  • Symfony
    • Get started
    • Authorize Payment
    • Configure payment in backend
    • Console commands
    • Container tags
    • Custom Action
    • Custom API usage
    • Creating custom view for payment page
    • Custom purchase examples
    • Debugging
    • Encrypt gateway configs stored in database
    • ISO4217 or Currency Details
    • Purchase done action
    • Refund Payment
    • Sandbox
    • Storages
    • Configuration Reference
    • Custom Purchase Examples
      • Authorize.NET AIM
      • Be2Bill onsite
      • Be2Bill Credit Card
      • Klarna Checkout
      • Klarna Invoice
      • Payex
      • Paypal Express Checkout
      • Paypal Pro Checkout
      • Paypal via Omnipay
      • Stripe checkout
      • Stripe.js
      • Stripe via Omnipay
Powered by GitBook
On this page
  • Gateway tag
  • Action tag
  • Api tag
  • Extension tag
  • Gateway factory tag
  • Supporting Payum
Edit on GitHub
  1. Symfony

Container tags

The bundle supports\reuse several Symfony container tags. You may find them useful too.

Gateway tag

The tag payum.gateway could be used if you want to register your service as a gateway gateway. The service must implement Payum\Core\GatewayInterface.

# app/config/config.yml

services:
    acme.foo_gateway:
        class: Payum\Core\Gateway
        public: true
        tags:
            - { name: payum.gateway, gateway: foo }

Attributes:

  • factory - define if you want later add actions or extensions to all gateways created by this factory.

  • gateway - define if you want later add actions or extensions to this gateway.

Action tag

The tag payum.action could be used if you want to register your service as an action. The service must implement Payum\Core\Action\ActionInterface.

# app/config/config.yml

services:
    acme.foo_action:
        class: Payum\Core\Action\ActionInterface
        public: true
        tags:
            - { name: payum.action, factory: foo, gateway: bar, all: true, alias: foo, prepend: false }

Attributes:

  • factory - define if you want to add the action to gateways created by the factory with given name.

  • gateway - define if you want to add the action to a gateway with given name

  • all - define if you want to add the action to all gateways

  • prepend - define if you want your action to be put at the beginning.

  • alias - you can use alias if you' like to overwrite the default action or add a good looking name

Api tag

The tag payum.api could be used if you want to register your service as an api. The service could be any object.

# app/config/config.yml

services:
    acme.foo_api:
        class: Acme\Payum\FooApi
        public: true
        tags:
            - { name: payum.api, factory: foo, gateway: bar, all: true, alias: foo, prepend: false }

Attributes:

  • factory - define if you want to add the extension to gateways created by the factory with given name.

  • gateway - define if you want to add the extension to a gateway with given name

  • all - define if you want to add the extension to all gateways

  • prepend - define if you want your extension to be put at the beginning.

  • alias - you can use alias if you' like to overwrite the default action or add a good looking name

Extension tag

The tag payum.extension could be used if you want to register your service as an extension. The service must implement Payum\Core\Extension\ExtensionInterface.

# app/config/config.yml

services:
    acme.foo_extension:
        class: Payum\Core\Extension\ExtensionInterface
        public: true
        tags:
            - { name: payum.extension, factory: foo, gateway: bar, all: true, alias: foo, prepend: false }

Attributes:

  • factory - define if you want to add the extension to gateways created by the factory with given name.

  • gateway - define if you want to add the extension to a gateway with given name

  • all - define if you want to add the extension to all gateways

  • prepend - define if you want your extension to be put at the beginning.

  • alias - you can use alias if you' like to overwrite the default action or add a good looking name

Gateway factory tag

The tag payum.gateway_factory could be used if you want to register your service as a gateway factory. The service must implement Payum\Core\GatewayFactoryInterface.

# app/config/config.yml

services:
    acme.foo_gateway_factory:
        class: Payum\Core\GatewayFactory
        public: true
        tags:
            - { name: payum.gateway_factory, factory: foo }

Attributes:

  • name - The name of the factory

  • human_name - The name shown to humans, in the backend for example.


Supporting Payum

Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:

PreviousConsole commandsNextCustom Action

Last updated 10 months ago

Become a sponsor