PHPackages                             deepbajwa3/instamojo - 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. [Payment Processing](/categories/payments)
4. /
5. deepbajwa3/instamojo

ActiveLibrary[Payment Processing](/categories/payments)

deepbajwa3/instamojo
====================

Laravel InstaMojo provides an expressive, fluent interface to Instamojo's payment and refund services.

081PHP

Since May 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/deepbajwa3/instamojo)[ Packagist](https://packagist.org/packages/deepbajwa3/instamojo)[ RSS](/packages/deepbajwa3-instamojo/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel InstaMojo

[![Latest Stable Version](https://camo.githubusercontent.com/c849f4f5b6a78861fe54b2c3003c94c53a6f87b84c4d9a46e86a9ecc7f35146e/68747470733a2f2f706f7365722e707567782e6f72672f6465657062616a7761332f696e7374616d6f6a6f2f762f737461626c65)](https://packagist.org/packages/deepbajwa3/instamojo)[![SensioLabs Insight](https://camo.githubusercontent.com/69ac25cd33a36a79b6ef23fe27a921480bc4d57dded2c297e14c7d2b92ce1cf8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436865636b2d506c6174696e756d2d627269676874677265656e2e737667)](https://insight.sensiolabs.com/projects/b60d453c-a67c-4079-b775-febe65ee02bc)[![Total Downloads](https://camo.githubusercontent.com/597f21024eea4fb8364d1797018c38672939f89e2cd186c5338afaf69abf1042/68747470733a2f2f706f7365722e707567782e6f72672f6465657062616a7761332f696e7374616d6f6a6f2f646f776e6c6f616473)](https://packagist.org/packages/deepbajwa3/instamojo)[![License](https://camo.githubusercontent.com/082c635064be289cc0b1ebad4f0e80666ee3902b1732cb9af4c35ac8aed2a1af/68747470733a2f2f706f7365722e707567782e6f72672f6465657062616a7761332f696e7374616d6f6a6f2f6c6963656e7365)](https://packagist.org/packages/deepbajwa3/instamojo)

Introduction
------------

[](#introduction)

Insta Mojo provides an expressive, fluent interface to [Instamojo's](https://instamojo.com) online payments and refund services. It handles almost all of the boilerplate payment code you are dreading writing and are unable to watch next episode of Narcos because of the same. In addition to the basic payments and refunds management, Mojo stores all the tansactions &amp; refunds details with him and gives them to you as you ask (No you don't even need to shout Ok google for that).

Here are a few short examples of what you can do:

```
$instamojoFormUrl = Instamojo::giveMeFormUrl($user,$amount,$purpose);

return redirect($instamojoFormUrl);
```

That's it for making the payment, also it gets you the payment details after the payment with the same breeze:

```
$details = Instamojo::giveMePaymentDetails();
```

Much more in the [documentation](https://github.com/deepbajwa3/instamojo/wiki)

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

[](#documentation)

You'll find the entire documentation &amp; the spoiler for Narcos season 3 in the [WIKI](https://github.com/deepbajwa3/instamojo/wiki). Since thats why the wiki is made for! But, no one cares sigh...

Stuck somewhere using the laravel mojo, any feature requests, or a TV series recommendation? Feel free to [create an issue on gitHub](https://github.com/deepbajwa3/instamojo/issues), I'll try to address it as soon as possible.

Prerequisites
-------------

[](#prerequisites)

- If you are upgrading from v1 to v2 please checkout the [changelog](https://github.com/deepbajwa3/instamojo/blob/master/changelog.md)
- PHP &gt;=7.0
- CURL extension should be enabled

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

[](#installation)

> **Enable the CURL extension in order to use this package**

You can install this package via composer using this command:

```
composer require deepbajwa3/instamojo
```

Next, you must add the service provider:

```
// config/app.php
'providers' => [
    ...
    Deepbajwa3\Instamojo\InstamojoServiceProvider::class,
];
```

You can publish the config-file "instamojo.php" with:

```
php artisan vendor:publish --provider="Deepbajwa3\Instamojo\InstamojoServiceProvider"
