TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'pay_simple'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pay_simple
Set up your API Key and username:
PaySimple.api_key = "VeryLongSharedSecretStringGoesHere"
PaySimple.api_user = "ApiUser1234"
Creat a customer
customer = PaySimple::Customer.new
customer.first_name = "Test"
customer.last_name = "Customer"
customer.shipping_same_as_billing = true
customer.billing_address = PaySimple::Address.new
customer.billing_address.street_address1 = "123 Fake Street"
customer.billing_address.city = "Madison"
customer.billing_address.state_code = "WI"
client = PaySimple::Client.new
client.create(customer)
- Fork it ( http://github.com//pay_simple/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request