Skip to content

amitrawal/wepay_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple ruby client to interact with wepay apis.

Usage

In rails put following in Gemfile
gem 'wepay_client',:git => 'git://github.com/amitrawal/wepay_client.git'

Create a wepay_config.rb in config/initializers folder and setup the client with wepay client id and client secret

require 'wepay_client'

WepayClient::Client.configure do
  client_id     '11111111'
  client_secret '5f434343'
  use_ssl       true
  use_stage     !(ENV['RAILS_ENV'] == 'production')
end


example to call wepay apis 

wepay = WepayClient::Client.instance
account = wepay.create_account('token data', 1122334)
p account[:account_id]

About

wepay_client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages