2017 © Pedro Peláez
 

library paygateweb

Adding PayGateWeb to Laravel IoC for ease of use and laravel flair

image

misterbrownrsa/paygateweb

Adding PayGateWeb to Laravel IoC for ease of use and laravel flair

  • Monday, December 4, 2017
  • by MisterBrownRSA
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

Laravel PayGateWeb

I needed a laravel-esque wrapper to make calls to the PayGate service, but couldn't find any. So I created one. It was specifically designed for my own personal use, but you are welcome to submit issues, and I'll look into refactoring it so that it can be used in a more general purpose fashion., (*1)

Getting Started

Prerequisites

This was built and tested ONLY on Laravel 5.5, although I'm sure it'll work on previous versions as well., (*2)

Installing

composer require misterbrownrsa/laravel-paygateweb

Since Laravel 5.5 automatically includes the service provider, it won't be necessary to register it. However, if you really want to, run the following command, (*3)


Usage Examples

PayGateWeb makes use of the Webv3 API for PayGate, which means it will redirect to their site for payment, (*4)

$user = User::first();
$result = $payGateWeb->user($user)
    ->reference('test000000001')
    ->amount(100)
    ->returnURL(route('paygate.return'))
    ->notifyURL(route('paygate.notify'))
    ->initiate();

View::share('paygate', $result);

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details, (*5)

The Versions

04/12 2017

dev-master

9999999-dev

Adding PayGateWeb to Laravel IoC for ease of use and laravel flair

  Sources   Download

MIT

The Requires

 

by Duwayne Brown

03/12 2017

1.0.0

1.0.0.0

Adding PayGateWeb to Laravel IoC for ease of use and laravel flair

  Sources   Download

MIT

The Requires

 

by Duwayne Brown