Skip to content

Instantly share code, notes, and snippets.

@alaingoldman
Created December 25, 2013 01:55
Show Gist options
  • Save alaingoldman/8119540 to your computer and use it in GitHub Desktop.
Save alaingoldman/8119540 to your computer and use it in GitHub Desktop.
def create_button(id)
button = {
:name => 'test',
:type => 'buy_now',
:price_string => '1.23',
:price_currency_iso => "USD",
:custom => 'Order123',
:callback_url => 'http://www.example.com/my_custom_button_callback',
:description => 'sample description',
:style => 'custom_large',
:include_email => true
}
"https://coinbase.com/api/v1/buttons" + button.to_query
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment