I am trying to create a simple payment system for bitcoins using coinbase API and this lovely script I found on github
Everything works smoothly, but I would like to be able to take the users delivery address as well.
I am using the following to create a payment button:
$response = $coinbase->createButton("This is an item", "$amount", "BTC", "Trackcode", array(
"description" => "Item Description here"
));
echo $response->embedHtml;
I noticed that the description of the item is never actually displayed to the end user.
"description" => "Item Description here"
I am thinking this may be used as a reference for the merchant once a transaction has taken place. If this is true, I could take advantage of this by having the users delivery address parsed in to the "item description". This should then be displayed to me in my merchant account over at coinbase.
I know I could quite easily test this myself by making a transaction, but my "wallet" is empty at the moment.
Does anyone with any experience with coinbase know if this is true?
Have you tried using their api library? https://github.com/coinbase/coinbase-php It has a nice documentation and is almost error free. It should be fairly simple if you use this api. Here is the sample provided for payment buttons in the github doc.