deepbajwa3/instamojo

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

dev-master 2021-05-02 10:38 UTC

This package is not auto-updated.

Last update: 2024-04-29 19:15:46 UTC


README

Laravel InstaMojo

Latest Stable Version SensioLabs Insight Total Downloads License

Introduction

Insta Mojo provides an expressive, fluent interface to Instamojo's 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 & 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

Documentation

You'll find the entire documentation & the spoiler for Narcos season 3 in the 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, I'll try to address it as soon as possible.

Prerequisites

  • If you are upgrading from v1 to v2 please checkout the changelog
  • PHP >=7.0
  • CURL extension should be enabled

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"
<<<<<<< HEAD

=======