Download the PHP package pavlaq/przelewy24-bundle-fork without Composer
On this page you can find all versions of the php package pavlaq/przelewy24-bundle-fork. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pavlaq/przelewy24-bundle-fork
More information about pavlaq/przelewy24-bundle-fork
Files in pavlaq/przelewy24-bundle-fork
Package przelewy24-bundle-fork
Short Description This is Symfony 3.3+ P24 Bundle.
License MIT
Informations about the package przelewy24-bundle-fork
Allset Przelewy24 Bundle
This is superb easy to use Przelewy24 Bundle with bulit-in Symfony Events.
Instalation
and then update your AppKernel.php
:
Than add to your routing.yml
file:
If you want to have access to Test Tools add this to routing_dev.yml
:
Requirements
Symfony 3.3++ (becouse bundle is using Symfony Service Autowire)
Guzzle ^6.3 (already included in composer.json)
Config
Add to your config folowing lines:
Usage
1. Create your super-custom action
In your controller.
2. Register Payment Success Event Listener
3. Do what only you want with your succesed payment
Developer Tools
Testing connection
To access tests you have to add @AllsetPrzelewy24Bundle/Resources/config/routing_dev.xml
to your rounting_dev.yml
file. (check out Instaltion chapter).
After that you have access to allset_przelewy24_test
route or simpler go to /p24-test
path and checkout the results.
Simulating Payment Success
Due to Przelewy24 native API you are unable to get success response on your localhost, but you can simulate it with Simulating Payment Success Tool.
To access simulating you have to add @AllsetPrzelewy24Bundle/Resources/config/routing_dev.xml
to your rounting_dev.yml
file. (check out Instaltion chapter).
After that you can simply go to /p24-fake-success/{sessionId}
path or redirect to route allset_przelewy24_fake_success
to make bundle to trigger przelewy24.event.payment_success
event.