pczyzyk / payum-przelewy24-bundle
Przelewy24 payments bundle for Symfony based on Payum
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 6
Type:project
pkg:composer/pczyzyk/payum-przelewy24-bundle
Requires
- payum/payum-bundle: ^2.5
- php-http/guzzle6-adapter: 2.0.1
- sensio/framework-extra-bundle: ^5.1
This package is not auto-updated.
Last update: 2025-10-31 06:12:08 UTC
README
- Create services in services.yml
    app.payment.przelewy24.capture_offsite:
        class: Umbrella\PayumPrzelewy24Bundle\Action\CaptureOffsite
    app.payment.przelewy24.status:
        class: Umbrella\PayumPrzelewy24Bundle\Action\Status
    app.payment.przelewy24.notify:
        class: Umbrella\PayumPrzelewy24Bundle\Action\Notify
        arguments:
          - '@repository.payment'
          - '@doctrine.orm.default_entity_manager'
- Create przelewy24 gateway
    app.payment.przelewy24.gateway_factory:
        class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
        arguments: ['Umbrella\PayumPrzelewy24Bundle\Factory\Przelewy24OffsiteGatewayFactory']
        tags:
          - { name: payum.gateway_factory_builder, factory: przelewy24 }
- Add configuration for payum to config.yml
payum:
    security:
        token_storage:
            AppBundle\Entity\PaymentToken: { doctrine: orm }
    storages:
        AppBundle\Entity\Payment: { doctrine: orm }
    gateways:
        przelewy24:
            factory: przelewy24
            sandbox: true
            clientId: %clientId%
            clientSecret: %clientSecret% 
            returnUrl: %returnUrl% #http://localhost
            payum.action.status: '@app.payment.przelewy24.status'
            payum.action.capture_offsite: '@app.payment.przelewy24.capture_offsite'
            payum.action.notify: '@app.payment.przelewy24.notify'