| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 63 | All time:  10,443 This week: 455  | ||||
| Version | License | PHP version | Categories | |||
| laravel-instapago 2.0.1 | MIT/X Consortium ... | 5.6 | PHP 5, E-Commerce, Libraries, Web ser... | 
| Description | Authors Contributor | ||||||||
| 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
|  Files (20) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  asset (1 file) | ||||
|  help (1 file) | ||||
|  src (3 files, 3 directories) | ||||
|  tests (1 file) | ||||
|    CHANGELOG.md | Data | Auxiliary data | ||
|    composer.json | Data | Auxiliary data | ||
|    CONDUCT.md | Data | Auxiliary data | ||
|    CONTRIBUTING.md | Data | Auxiliary data | ||
|    ISSUE_TEMPLATE.md | Data | Auxiliary data | ||
|    LICENSE | Lic. | License text | ||
|    LICENSE.md | Lic. | License text | ||
|    phpunit.xml.dist | Data | Auxiliary data | ||
|    PULL_REQUEST_TEMPLATE.md | Data | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
|  Files (20) | / | src | 
| File | Role | Description | ||
|---|---|---|---|---|
|  config (1 file) | ||||
|  Exceptions (2 files) | ||||
|  facades (1 file) | ||||
|  Instapago.php | Class | Class source | ||
|  InstapagoServiceProvider.php | Class | Class source | ||
|  MyValidator.php | Class | Class source | ||
|  Files (20) | / | src | / | Exceptions | 
| File | Role | Description | 
|---|---|---|
|  InstapagoException.php | Class | Class source | 
|  TimeoutException.php | Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| 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.
 If you know an application of this package, send a message to the author to add a link here.