Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umbrellalimited/payum-przelewy24-bunde
Przelewy24 payments for Symfony based on Payum
https://github.com/umbrellalimited/payum-przelewy24-bunde
payments payum przelewy24 symfony2
Last synced: 3 months ago
JSON representation
Przelewy24 payments for Symfony based on Payum
- Host: GitHub
- URL: https://github.com/umbrellalimited/payum-przelewy24-bunde
- Owner: umbrellalimited
- Created: 2017-03-10T09:23:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T07:27:03.000Z (over 7 years ago)
- Last Synced: 2024-09-30T16:01:36.070Z (3 months ago)
- Topics: payments, payum, przelewy24, symfony2
- Language: PHP
- Size: 8.79 KB
- Stars: 3
- Watchers: 8
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README #
1. Create services in services.yml
```
app.payment.przelewy24.capture_offsite:
class: Umbrella\PayumPrzelewy24Bundle\Action\CaptureOffsiteapp.payment.przelewy24.status:
class: Umbrella\PayumPrzelewy24Bundle\Action\Statusapp.payment.przelewy24.notify:
class: Umbrella\PayumPrzelewy24Bundle\Action\Notify
arguments:
- '@repository.payment'
- '@doctrine.orm.default_entity_manager'
```2. 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 }
```3. 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'
```