0.0
No commit activity in last 3 years
No release in over 3 years
A paytm seller can do all the seller activities with this gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0
~> 3.0
 Project Readme

PaytmSeller

Ruby Gem for Paytm Marketplace API.

This extension helps developers to integrate Paytm marketplace API easily in Rails application.

Installation

Add this line to your application's Gemfile:

gem 'PaytmSeller'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install PaytmSeller

Usage

  1. Create paytm client object

    fk_client = PaytmSeller::Client.new(CLIENT_ID,CLIENT_SECRET) paytm_client = PaytmSeller::Client.new(MERCHANT_ID, USERNAME, PASSWORD, CLIENT_ID,CLIENT_SECRET)

  2. Fetch your orders

    paytm_client.fetch_orders

  3. Update product details

    data = {data: [{"sku" : "SKU001","qty" : 10},{"sku" : "SKU002","price" : 100, "mrp" : 80}]}

    begin

     paytm_client.update_products(data)
    

    rescue PaytmSeller::InvalidDataException => e

     puts e.response.body
    

    rescue PaytmSeller::OtherException => e

     puts e.message
    

    end

License

The gem is available as open source under the terms of the MIT License.