Download the PHP package asioso/pimcore-payone-module without Composer
On this page you can find all versions of the php package asioso/pimcore-payone-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download asioso/pimcore-payone-module
More information about asioso/pimcore-payone-module
Files in asioso/pimcore-payone-module
Package pimcore-payone-module
Short Description A bundle to help with e-commerce and payone
License GPL-3.0-or-later
Homepage https://www.asioso.com
Informations about the package pimcore-payone-module
PayOne Payment Bundle
Prerequisites
- PHP 7.1 or higher (https://secure.php.net/)
- Composer (https://getcomposer.org/download/)
- A Pimcore Installation using the pimcore e-commerce framework (v5.7 or higher)
- A PAYONE account or test account (https://www.payone.com/kontakt/)
Installation
composer
add the bundle to composer.json with
Enable the Bundle in the Extension Manager
[NOTE] make sure, that you have the NumberGeneratorBundle enabled.
otherwise same old same old - this will create a new database Table and import an ObjectBrick.
Add Static Routes for the Bundle
you need to add a static route named payone in pimcore's backend. Otherwise the checkout process will not work
Configuration
add payone as payment provider in your e-commerce configuration. Use payone as payment provider in your checkout manager:
see an example below:
Enable Payment Provider
update your payment controller to support payone as payment provider. take a look at this controller example Below you can see the most crucial part in the payment frame action:
DataProcessor
We need some information from earlier checkout steps, so your implementation of this class will be used to fill in personal Data and shipping data. Take a look at this example
Callback url
you need to register your application's callback address in payone's merchant service portal. it uses the the static route you defined earlier, and will look like this:
Overriding default Payment URLs
In case you don't want to rely on the generated success/pending/failure URLs provided by this bundle (based on static routes- see above), there is another way using symfony's Dependency Injection component.
Register a new CompilerPass, take a look at this example, which sets a tailored generator service that generates a custom completed-route, but still relies on the default implementation for the remaining URLs. see this class for more details.
Any Questsion
write to [email protected]