Download the PHP package vaszev/barion-bundle without Composer
On this page you can find all versions of the php package vaszev/barion-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vaszev/barion-bundle
More information about vaszev/barion-bundle
Files in vaszev/barion-bundle
Package barion-bundle
Short Description Symfony bundle for Barion
License MIT
Homepage https://github.com/vaszev/barion.git
Informations about the package barion-bundle
Barion smart gateway wrapper
Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Contains
Barion library (1.3.1 March 20. 2019.) wrapper for Symfony 4
Please note that this bundle is for simple B2C Immediate payment type only. Project still in development stage, use only at your own risk!
Install
Configure your credentials:
/config/vaszev.yaml
Add the following to your routing:
/config/routes.yaml
Update doctrine's schema:
$ php bin/console doctrine:schema:update --force
Install assets:
$ php bin/console assets:install --symlink
Include Barion's pixel into your webshop pages:
Adding translations :
Best practicles
- save your webshop
orderID
in your database's table - get your
orderID
and items - init Barion online payment with the data you know about your visitor
- create a transaction with your
orderID
and add items - prepare your payment and get your URL for Barion's payment page
- pay, and get back to our waiting room where customer got progress info
- Barion will knock on callback URL where we'll set payment state
- let you customer know about it
- get back to your webshop and keep buying
Example
You have to gather your items into transaction(s) that could have one or more items:
Check if your order's payment received:
Call getters on your order:
All versions of barion-bundle with dependencies
symfony/framework-bundle Version ^4.0
twig/extensions Version ^1.5
ext-curl Version *
ext-json Version *