No commit activity in last 3 years
No release in over 3 years
Ruby gem for easebuzz payment process.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

paywitheasebuzz-ruby

Ruby integration kit for pay with easebuzz pay.easebuzz.in

Installation

Add this line to your application's Gemfile:

gem 'paywitheasebuzz-ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install paywitheasebuzz-ruby

Usage

initialize Easebuzz in your application.rb

    require 'paywitheasebuzz-ruby'
    Easebuzz.init('MERCHANT_KEY', 'MERCHANT_SALT', 'env') #env: 'test', 'prod'

Initiate Payment

    options = {
        "txnid" => "T3SAT0B5OL",
        "amount" => "100.0",
        "firstname" => "customer_name",
        "email" => "customer_email",
        "phone" => "customer_phone",
        "productinfo" => "Product Name",
        "surl" => "http://localhost:3000/response.php",
        "furl" => "http://localhost:3000/response.php",
        "udf1" => "aaaa",
        "udf2" => "aaaa",
        "udf3" => "aaaa",
        "udf4" => "aaaa",
        "udf5" => "aaaa",
        "address1" => "aaaa",
        "address2" => "aaaa",
        "city" => "aaaa",
        "state" => "aaaa",
        "country" => "aaaa",
        "zipcode" => "123123"
    }
    payment_response = Easebuzz::Payment.initiate(options)
    #payment_response = {"status"=>1, "data"=>"48fde15f93b80ca178asdff56ghy678345gtdh7388fcd6f5550823e2516ab5266"}
    #redirect customer to the https://[pay, testpay].easebuzz.in/pay/<<payment_response.data>>