2017 © Pedro Peláez
 

library segpay-payment

A segpay payment package to integrate into application

image

stojankukrika/segpay-payment

A segpay payment package to integrate into application

  • Monday, December 4, 2017
  • by stojankukrika
  • Repository
  • 0 Watchers
  • 2 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 21 % Grown

The README.md

Segpay payment package

Installation

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

composer require stojankukrika/segpay-payment

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

// config/app.php
'providers' => [
    ...
   stojankukrika\SegpayPayment\SegpayPaymentServiceProvider
];

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

$ php artisan migrate

Configuration

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

- SEGPAY_PACKAGE
- SEGPAY_USER_ID
- SEGPAY_USER_ACCESS_KEY
- SEGPAY_URL_ID

set it values from mp.segpay.com and publish this provider using:, (*5)

$ php artisan vendor:publish --provider=stojankukrika\SegpayPayment\SegpayPaymentServiceProvider

Important note

  • Before testing Payment API do not forget to to your account need to be approved from segpay
  • Test valid card '4444333322221111' with any expiration date and ccv
  • Test declined card '4444444444445555' with any expiration date and ccv

Usage

Firstable you initialize SegpayPayment class then call some method, like this:, (*6)

$segpay = new SegpayPayment();
$response = $segpay->generateSignupPaymentPage($param1, $param2....);

you need to redirect user to response page, and when customer pay, you will get payment notification (segpay send it to your payment page - define it in responses in Merchant panel)., (*7)

Here is list fo methods: Segpay apiFunctionList., (*8)

Changelog

  • 1.0 - initial version

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

04/12 2017

dev-master

9999999-dev

A segpay payment package to integrate into application

  Sources   Download

MIT

The Requires

 

04/12 2017

1.0

1.0.0.0

A segpay payment package to integrate into application

  Sources   Download

MIT

The Requires