Skip to content

1. Prerequisites

Harish Toshniwal edited this page Feb 13, 2017 · 3 revisions
  • PHP >=7.0

  • Curl needs to be installed & enabled for using this package, high chances are that you will already have the same but make sure to cross check

  • Execute all the steps in the installation guide

  • Publish & Fill in all the configuration details in your .env file. You can get the keys for .env file from the configuration file published by the package(config/laravelmojo.php)

  • Publish & Run the migrations for this package

  • Make sure when you launch your app in the production environment, change the Key, token & subdomain in the config file to instamojo's production values

  • Add the following at the top of every controller in which you want to use the package methods

use Lubusin\Mojo\Mojo;
  • If you want use the 2 models for the tables created with the shipped migrations make sure to use them at the top as follows
use Lubusin\Mojo\Models\MojoPaymentDetails;
use Lubusin\Mojo\Models\MojoRefundDetails;

Completed the prerequisites, so let's dig into accepting & processing payments on the next page

Clone this wiki locally