Download the PHP package zepson/dpo-laravel without Composer
On this page you can find all versions of the php package zepson/dpo-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zepson/dpo-laravel
More information about zepson/dpo-laravel
Files in zepson/dpo-laravel
Package dpo-laravel
Short Description A simple package to add DPO API to your laravel application and make payment processing much easy
License MIT
Homepage https://github.com/zepson/dpo-laravel
Informations about the package dpo-laravel
DPO (Direct Pay Online) Laravel Package
The best DPO Laravel package, simple Ever
This is the package that will help you add DPO Payment API to your Laravel Application, We are open to contribution and support to make it better.
Features
- Create Payment Token (Initiate order at DPO servers)
- Verify Payment Token (Check Transaction status)
- Make Direct payment(Redirects order direct to DPO payment page)
- Fetch Payment Token
- Database migrations to save transaction details
- Much easy to use
- Constantly updated
How It works
- Create payment token
- Verify token
- Redirect to DPO payment page
- Fetch response
- Done
The package does all this for you behind the scenes😂
Basic Usage Example.
Installation
Install the package Via Composer
Now You can Publish the configuration File and Migration
Migrate The Database table [OPTIONAL]
Configuration File
The above Details are for Test/Sandbox environment taken from DPO public documentation
Update .env File with Correct Informations
USAGE
-
create array of your order which match parrameters in the following exaple
- Now you can choose to make direct payment or createToken First and then make payment
-
Starting with Direct Payment
- If you preffer to save details then this is the ideal step to follow [Generate Token, Make payment]
-
Get Token
-
Get payment Url
- Redirect User to payment page
As [Novath Thomas] always says
There is a huge difference between sysem security and complications, Complication hurts, API should'nt be complicated Thats one of the primary AIM of the introduction of APIs
We would like more contributions to make the package more secure and readable.
License
This project is licensed under the MIT license.