Download the PHP package krzysiekpiasecki/dotphpay without Composer
On this page you can find all versions of the php package krzysiekpiasecki/dotphpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package dotphpay
Dotphpay
Dotpay is the most comprehensive online worldwilde payments solution dedicated for polish ecommerce. This repository comes with middlewares for payments implementation and validation layer.
Documentation
Are you interested in more details? Here's the complete documentation of API.
Using this library
Install
The source code is distributed via Composer and Packagist.
Payment Middleware
Custom domain payment handler must implement only the interface \Dotpay\Server\Handler\PaymentHandlerInterface. You have to use it at least for persisting client payments, before redirecting the client to the payment gateway.
After implementing the handler, create PSR-15 compatible request object, for example using Zend Diactoros component.
At the end, call the payment middleware to execute your own payment handler and then to send a redirect response to the client using for example Zend Diactoros component.
URLC Middleware
Custom domain URLC handler must implement only the interface \Dotpay\Server\Handler\URLCHandlerInterface. You have to use it to confirm transaction complete or handle status changing.
After implementing the handler, create PSR-15 compatible request object, for example with Zend Diactoros component.
At the end, call the URLC middleware to execute your own URLC handler and then send a response "OK" to Dotpay, when the transaction was handled correctly, using for example Zend Diactoroscomponent.
Error Code Middleware
Custom domain handler for getting error codes from Dotpay server must implement only the interface \Dotpay\Server\Handler\ErrorCodeHandlerInterface.
After implementing the handler, create PSR-15 compatible request object, for example with Zend Diactoros component.
At the end, call the error code middleware to execute your own error code handler.
Validation layer
This library uses Symfony Validator component to validate the request. If you want, you can use validation layer provided by this library standalone. Example of validation is here:
Additional resources
Dotpay Technical Manual For Payments Implementation
Using Symfony Validation component
All versions of dotphpay with dependencies
doctrine/annotations Version ^1.5.1
doctrine/cache Version ^1.7
symfony/form Version ^4.0
symfony/http-foundation Version ^4.0
symfony/security-csrf Version ^4.0
psr/http-server-middleware Version 1.0.0
symfony/psr-http-message-bridge Version ^1.0
zendframework/zend-diactoros Version ^1.7