Package Data | |
---|---|
Maintainer Username: | blenderdeluxe |
Maintainer Contact: | diegocortes@blenderdeluxe.com (Diego Cortes) |
Package Create Date: | 2016-08-06 |
Package Last Update: | 2020-02-18 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 15:00:39 |
Package Statistics | |
---|---|
Total Downloads: | 235 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Package modified from Freshwork Studio for personal use all rights for them.
Khipu It's a chilean payment gateway to automate wire transfers. You can checkout the Khipu API documentation here.
This project is based on the amazing guys of Tifón and Freshwork Studio. https://github.com/khipu/lib-php
composer require blenderdeluxe/khipu-laravel
In the app/config/app.php
file, add the following to the providers
array:
'providers' => array(
…
BlenderDeluxe\LaravelKhipu\KhipuServiceProvider::class,
…
),
In the app/config/app.php
file, add the following to the aliases
array:
'aliases' => array(
…
'Khipu' => BlenderDeluxe\LaravelKhipu\Facades\Khipu::class,
…
),
$ php artisan vendor:publish --provider="BlenderDeluxe\LaravelKhipu\KhipuServiceProvider"
config/khipu.php
...
KHIPU_ID=99999
KHIPU_KEY=ec19c08f3bdb2162e99144b1f6b9c0e2fe1856e0
//routes.php
Route::get('/', function () {
$banks = Khipu::loadService('ReceiverBanks')->consult();
echo $banks;
});
TypeHint the BlenderDeluxe\Khipu\Khipu
class.
It'll be automatically authenticated using your configuration credentials (KHIPU_ID and KHIPU_KEY)
//routes.php
Route::get('/', function (BlenderDeluxe\Khipu\Khipu $khipu) {
$banks = $khipu->loadService('ReceiverBanks')->consult();
//You can also can call the service as a properties of the class..
$khipu->ReceiverBanks->consult();
echo $banks;
});