Skip to content

pdziak/payum-przelewy24-bunde

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

  1. 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'
  1. 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 }
  1. 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'

About

Przelewy24 payments for Symfony based on Payum

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%