2017 © Pedro Peláez
 

library paxum-payment

A paxum payment package to integrate into application

image

stojankukrika/paxum-payment

A paxum payment package to integrate into application

  • Friday, December 15, 2017
  • by stojankukrika
  • Repository
  • 0 Watchers
  • 1 Stars
  • 116 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 107 % Grown

The README.md

Paxum payment package

You can support me to this project and make some donation., (*1)

Installation

You can install the package via composer:, (*2)

composer require stojankukrika/paxum-payment

If you are using Laravel in a version < 5.5, the service provider must be registered as a next step:, (*3)

// config/app.php
'providers' => [
    ...
   stojankukrika\PaxumPayment\PaxumPaymentServiceProvider
];

and add in aliases, (*4)

// config/app.php
'aliases' => [
    ...
   'Paxum' => \stojankukrika\PaxumPayment\Facades\PaxumPayment::class
];

After that run migration to make payment table to log payments, (*5)

$ php artisan migrate

Configuration

Add in your .env file variables:, (*6)

- PAXUM_EMAIL 
- PAXUM_SHARED_SECRET  
- PAXUM_SANDBOX

set it values from paxum.com and publish this provider using:, (*7)

$ php artisan vendor:publish --provider=stojankukrika\PaxumPayment\PaxumPaymentServiceProvider

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, (*8)

Usage

Firstable you initialize PaxumPayment class then call some method, like this:, (*9)

$paxum = new PaxumPayment();
$response = $paxum->transferFunds('email@example.com',50,'USD');

Here you can find all function list and how to call each of them Paxum apiFunctionList., (*10)

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., (*11)

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., (*12)

The Versions

15/12 2017

dev-master

9999999-dev

A paxum payment package to integrate into application

  Sources   Download

MIT

The Requires

 

15/12 2017

2.1

2.1.0.0

A paxum payment package to integrate into application

  Sources   Download

MIT

The Requires

 

14/12 2017

2.0.3

2.0.3.0

A paxum payment package to integrate into application

  Sources   Download

MIT

The Requires

 

13/12 2017

2.0.2

2.0.2.0

A paxum payment package to integrate into application

  Sources   Download

MIT

The Requires

 

30/11 2017

2.0.1

2.0.1.0

A paxum payment package to integrate into application

  Sources   Download

MIT

The Requires

 

29/11 2017

2.0

2.0.0.0

A paxum payment package to integrate into application

  Sources   Download

MIT

The Requires

 

27/11 2017

1.0

1.0.0.0

A paxum payment package to integrate into application

  Sources   Download

MIT

The Requires