Download the PHP package stojankukrika/paxum-payment without Composer
On this page you can find all versions of the php package stojankukrika/paxum-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stojankukrika/paxum-payment
More information about stojankukrika/paxum-payment
Files in stojankukrika/paxum-payment
Package paxum-payment
Short Description A paxum payment package to integrate into application
License MIT
Informations about the package paxum-payment
Paxum payment package
You can support me to this project and make some donation.
Installation
You can install the package via composer:
If you are using Laravel in a version < 5.5, the service provider must be registered as a next step:
and add in aliases
After that run migration to make payment table to log payments
Configuration
Add in your .env file variables:
set it values from paxum.com and publish this provider using:
Important note
Before testing Payment API Code Sample do not forget to do the following from Merchant Services >> API Settings:
- Enable API
- Enable API methods you want to use
- Add your IP address to "Allowed IPs" list
- "Generate New Shared Secret", if you didn't already received it by email during API activation
- PAXUM_SANDBOX is true if it's test and if is production then set it to false
Usage
Firstable you initialize PaxumPayment class then call some method, like this:
Here you can find all function list and how to call each of them Paxum apiFunctionList.
All requests returns string xml which you can easy parse using:
$xml = simplexml_load_string($response);
Then you will get SimpleXMLElement which is Object and you can get his properties and work with them.
Changelog
- 2.1 - version who work with CURL
- 2.0 - version with tracking response code and return string xml as response
- 1.0 - initial version
License
The MIT License (MIT). Please see License File for more information.
All versions of paxum-payment with dependencies
doctrine/dbal Version *
ixudra/curl Version 6.*
nesbot/carbon Version ~1.22