Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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]