Created
December 25, 2013 01:55
-
-
Save alaingoldman/8119540 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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