Download the PHP package arturwwl/przelewy24-bundle without Composer
On this page you can find all versions of the php package arturwwl/przelewy24-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arturwwl/przelewy24-bundle
More information about arturwwl/przelewy24-bundle
Files in arturwwl/przelewy24-bundle
Package przelewy24-bundle
Short Description This is Symfony 3.3+ P24 Bundle.
License MIT
Informations about the package przelewy24-bundle
Arturwwl 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 @ArturwwlPrzelewy24Bundle/Resources/config/routing_dev.xml
to your rounting_dev.yml
file. (check out Instaltion chapter).
After that you have access to arturwwl_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 @ArturwwlPrzelewy24Bundle/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 arturwwl_przelewy24_fake_success
to make bundle to trigger przelewy24.event.payment_success
event.