Download the PHP package alejociro/redirection without Composer
On this page you can find all versions of the php package alejociro/redirection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alejociro/redirection
More information about alejociro/redirection
Files in alejociro/redirection
Package redirection
Short Description Library to connect with PlacetoPay Checkout service
License MIT
Informations about the package redirection
PlacetoPay Redirection PHP library
With this code you will be able to quickly connect with the PlacetoPay Checkout service.
In order to see more comprehensive examples of how it works, please refer to the examples and the documentation
Migration from version 1
- [ ] Change the settings parameter
url
forbaseUrl
- [ ] If you have set the
timeout
for rest then change it to the root of the settings - [ ]
PlacetoPayServiceException
is thrown instead of returning an ERROR status response
Installation
Using composer from your project
Or If you just want to run the examples contained in this project run "composer install" to load the vendor autoload
Usage
Create an object with the configuration required for that instance
Creating a new Payment Request to obtain a Session Payment URL
Just provide the information of the payment needed and you will get a process url if its successful, for this example we are using the MINIMUM INFORMATION that needs to be provided, to see the full structure refer to the documentation or the example on examples/basic/payment.php
Obtain information about a previously created session
All versions of redirection with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^5.3|^6.5|^7.0
psr/log Version ^1.0|^2.0|^3.0