PHPackages                             socialgest/laravel-instapago - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. socialgest/laravel-instapago

ActiveLibrary[API Development](/categories/api)

socialgest/laravel-instapago
============================

Simple library for Instapago API in Laravel 5.\*

2.1.0(8y ago)852.1kMITPHPPHP ~5.6|~7.0

Since Mar 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/socialgest/laravel-instapago)[ Packagist](https://packagist.org/packages/socialgest/laravel-instapago)[ Docs](https://github.com/socialgest/laravel-instapago)[ RSS](/packages/socialgest-laravel-instapago/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

[![Php Instapago](asset/logo.png)](asset/logo.png)

 Library for Instapago in Laravel 5.\* (Version 1.0.0)

 **Note** The logos are owned by Instapago and Banesco, respectively..

[![GitHub issues](https://camo.githubusercontent.com/596713fd44b73cf91aea52157c8b16968614402f8481c256b6ba82cfb10d0286/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f736f6369616c676573742f6c61726176656c2d696e7374617061676f2e7376673f7374796c653d666c61742d737175617265)](https://github.com/socialgest/laravel-instapago/issues) [![GitHub forks](https://camo.githubusercontent.com/b56f801b06029c367f2851da2783d6b11faf43bd6f49ab48ebee64bcbde3a8fb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f736f6369616c676573742f6c61726176656c2d696e7374617061676f2e7376673f7374796c653d666c61742d737175617265)](https://github.com/socialgest/laravel-instapago/network) [![GitHub license](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/abr4xas/php-instapago/master/LICENSE)

Installation
------------

[](#installation)

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;
```

Configuration
-------------

[](#configuration)

### Set in .env

[](#set-in-env)

```
INSTAPAGO_KEY_ID = 74D4A278-C3F8-4D7A-9894-FA0571D7E023
INSTAPAGO_PUBLIC_KEY_ID = e9a5893e047b645fed12c82db877e05a

```

Example Usage
-------------

[](#example-usage)

```
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
    }
}
```

Documentation
-------------

[](#documentation)

[Documentation (EN)](https://instapago.com/wp-content/uploads/Integration-Guide-Instapago-API-1.6.pdf)

[Documentación (ES)](https://instapago.com/wp-content/uploads/2016/02/Guia-Integracion-API-Instapago-1.6.pdf)

### Key for test

[](#key-for-test)

```
* keyId = 74D4A278-C3F8-4D7A-9894-FA0571D7E023
* publicKeyId = e9a5893e047b645fed12c82db877e05a

```

License [MIT](http://opensource.org/licenses/MIT) ©️ 2016

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~191 days

Total

2

Last Release

3213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5fa502b2eda1e084f825a1c707278b5b0c8e94e8bf1cc108c69bfa9ce75db664?d=identicon)[SocialGest](/maintainers/SocialGest)

---

Top Contributors

[![abr4xas](https://avatars.githubusercontent.com/u/405484?v=4)](https://github.com/abr4xas "abr4xas (8 commits)")[![kikemarto](https://avatars.githubusercontent.com/u/14853156?v=4)](https://github.com/kikemarto "kikemarto (4 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

laravel-instapagosocialgest

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/socialgest-laravel-instapago/health.svg)

```
[![Health](https://phpackages.com/badges/socialgest-laravel-instapago/health.svg)](https://phpackages.com/packages/socialgest-laravel-instapago)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6277.0k5](/packages/riclep-laravel-storyblok)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[rapidez/core

Rapidez Core

1822.4k65](/packages/rapidez-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
