Download the PHP package pnm1231/paycorp-sampath-ipg without Composer
On this page you can find all versions of the php package pnm1231/paycorp-sampath-ipg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pnm1231/paycorp-sampath-ipg
More information about pnm1231/paycorp-sampath-ipg
Files in pnm1231/paycorp-sampath-ipg
Package paycorp-sampath-ipg
Short Description Paycorp Sampath Bank IPG package for Laravel
License MIT
Informations about the package paycorp-sampath-ipg
Paycorp Sampath IPG for Laravel
Paycorp Sampath IPG is a Laravel package for making payment using Sampath Bank Payment Gateway through Paycorp. In this package you can accept:
- Redirect Page Payments
- Realtime Payments
- Tokenized Payments
Features
- Using with composer
- Easy integration
- Compatible with Laravel
Requirements
PHP >= 5.6 OpenSSL >= 1.0.1 curl >= 7.34 Composer
Usage
Installation
Configurations
Laravel
After install via composer add Config values to .env file as following:
Methods
PaymentInit
Import package class in you class header:
Sample InitRequest
You will receive reqid, payment_page_url for the redirect. When you redirected to the "payment_page_url" user can enter the card details and pay. Then paycorp will return the response to "SAMPATH_RETURN_URL" you configured in .env file. When get the correct response, you need to call PaymentCompleteRequest.
completeRequest
Make Real Time Payments using Token
In Payment complete response you will get the "Token" and necessary data. Using "Token" you can make instant payments without entering card details or redirecting user everytime to payment page. This is the special feature of Vault in paycorp.
NOTE:
Please read Paycorp Technical document and understand the workflow well before use this package. This package only for developers to save their life.
License
MIT
Free Software, Hell Yeah!