razorpay

Razorpay Extension for Spree Commerce v5

RazorPay is the only payments solution in India that allows businesses to accept, process and disburse payments with its product suite.

Installation (Traditional)

  1. Add this to your Gemfile with this line:

    gem 'spree_razorpay_checkout'
    
  2. Install the Gem using Bundle Install:

    bundle install
    
  3. Copy & Run Migrations:

    bundle exec rails g spree_razorpay_checkout:install
    
  4. Compile Assests for Proper Images & JS loading:

    RAILS_ENV=development bin/rails assets:precompile
    
  5. Start Server:

    foreman start -f Procfile.dev
    

Installation (For Docker)

  1. Add this your Gemfile with this line:

    gem 'spree_razorpay_checkout'
    
  2. Install the Gem using Docker's Bundle Install:

    docker compose run web bundle install
    
  3. Run Install Generator to Copy Migrations in Docker way:

    docker compose run web bundle exec rails g spree_razorpay_checkout:install
    
  4. Compile Assests for Razorpay logo & assets (Recommended):

    docker compose run web bundle exec rails assets:precompile
    
  5. Re-Start Server (Recommended):

    docker compose down
    docker compose up -d
    

Plugin Configuration

  1. Get keys from Razorpay Dashboard here.

razorpay dashboard

  1. Make Sure to include both Razorpay Live & Test Keys from Razorpay Dashboard:

Admin Dashboard - Razorpay Plugin

  1. Drag Razorpay to Top in Payment Methods to make it Default:

Payment Methods - Razorpay Plugin

Checkout View

  1. Checkout Page:

Razorpay Checkout Page

  1. Razorpay Modal to Capture Payments:

Razorpay Modal

  1. Order Page (Customer View):

Razorpay in Order Page Client

  1. Order Page (Admin View):

Admin Orders Page Razorpay

Thankyou for supporting this plugin. if you find any issues related to plugin you are open to contribute and support which can help more Spree users in India.

Gem Info


Contributing

Contributions are welcome! Please open issues or submit pull requests to help improve this plugin for the Spree + Razorpay community in India.