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
- 
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)
 - 
Fetch your orders
paytm_client.fetch_orders
 - 
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.bodyrescue PaytmSeller::OtherException => e
puts e.messageend
 
License
The gem is available as open source under the terms of the MIT License.