![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-09-10 (1 year ago) ![]() | Not enough user ratings | Total: 58 | All time: 9,383 This week: 831![]() |
Version | License | PHP version | Categories | |||
laravel-instapago 2.0.1 | MIT/X Consortium ... | 5.6 | PHP 5, E-Commerce, Libraries, Web ser... |
Description | Author | ||||||||
This package is specific mainly for applications used in Venezuela
![]() This class can process payments with the Instapago and Laravel. |
|
<p align="center">
Library for Instapago in Laravel 5.* (Version 1.0.0)
</p>
<p align="center">
<sup style="color: #d0d0d0;"><b>Note</b> The logos are owned by Instapago and Banesco, respectively..</sup>
</p>
To install, run the following command in your project directory
$ composer require socialgest/laravel-instapago
Then in config/app.php
add the following to the providers
array:
Socialgest\Instapago\InstapagoServiceProvider::class
Also, if you must (recommend you don't), add the Facade class to the aliases
array in config/app.php
as well:
'Instapago' => Socialgest\Instapago\Facades\Instapago::class
But it'd be best to just inject the class, like so (this should be familiar):
use Socialgest\Instapago\Instapago;
INSTAPAGO_KEY_ID = 74D4A278-C3F8-4D7A-9894-FA0571D7E023
INSTAPAGO_PUBLIC_KEY_ID = e9a5893e047b645fed12c82db877e05a
use Socialgest\Instapago\Instapago;
...
public function pay()
{
$paymentData = [
'amount' => '200',
'description' => 'test',
'cardHolder' => 'jon doe',
'cardHolderId' => '11111111',
'cardNumber' => '4111111111111111',
'cvc' => '123',
'expirationDate' => '12/2019',
'IP' => '127.0.0.1',
];
try{
$instapago = new Instapago();
$respuesta = $instapago->directPayment($paymentData);
// hacer algo con la respuesta
} catch(\Socialgest\Instapago\Instapago\Exceptions\InstapagoException $e){
// manejar el error
} catch(\Socialgest\Instapago\Instapago\Exceptions\TimeoutException $e){
// manejar el error
}
}
* keyId = 74D4A278-C3F8-4D7A-9894-FA0571D7E023
* publicKeyId = e9a5893e047b645fed12c82db877e05a
License MIT :copyright: 2016
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.