Skip to content

Instantly share code, notes, and snippets.

@programizer
Created April 5, 2018 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programizer/8c829801779240353497e07e410c2c3a to your computer and use it in GitHub Desktop.
Save programizer/8c829801779240353497e07e410c2c3a to your computer and use it in GitHub Desktop.
A first Gist for using Coinbase commerce API in bountysource
# Using Coinbase Commerce API
# See https://commerce.coinbase.com/docs/api/#create-a-checkout
# And https://github.com/httprb/http/wiki/Passing-Parameters
# In Gemfile:
gem 'http'
# In rails.rb (e.g.):
require 'http'
# In cart_controller.rb (e.g.):
response = HTTP.post('https://api.commerce.coinbase.com/checkouts', :body => "name=test&description=test&pricing_type=fixed_price")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment