Download the PHP package maryamnbyn/vandar-laravel without Composer
On this page you can find all versions of the php package maryamnbyn/vandar-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maryamnbyn/vandar-laravel
More information about maryamnbyn/vandar-laravel
Files in maryamnbyn/vandar-laravel
Package vandar-laravel
Short Description laravel library for vandar gateway
License proprietary
Informations about the package vandar-laravel
Vandar Laravel Package
This Laravel package allows you to connect to Vandar payment services. See vandar.io for more info.
Installation
This package can be installed through Laravel:
Add vandar configuration to config/services.php:
You can get your api key at Vandar Dashboard
Usage
In every class where Vandar is used, you need to use the Vandar facade:
Then, the payment requests can be sent like this:
Further information on the responses is available on Vandar Documentation, but keep in mind that you need to store the $result['token'] to verify the payment later on.
After this, you may redirect the user to the payment service using one of these methods, note that token is optional:
After the user made the payment, Vandar will redirect the user to the callback specified above with a token in url. you can verify payment by passing the token to the verify method:
for get info of transaction you can make requestInfo method and send token for that then you can get information ;
To get updates on any transactions you may have created, you may use the requestInfo method along with the token you stored:
Contribution
Pull-requests fixing bugs or adding to the documentation are very appreciated!
License
This project is licensed under the GPL-3, see LICENSE for more information.
All versions of vandar-laravel with dependencies
ext-curl Version *