Also, the Checkout Buttons for Mt. Gox have a checkbox where you can indicate that you would like autosell (to have the bitcoins sold at market to USDs).
I could not figure out how to make the mt. gox checkout button dynamic... When creating the button you have to put in a value... even if you change that value in the code they give you, once the customer clicks the button and goes to mtgox site the original amount shows back up again. This makes the button useless for shopping carts with different values at checkout.
The one you create using the Checkout Button web tool is only like a "pay now" button for a static amount.
For dynamic pricing, the ecommerce/cart script you are using calls the API to get the URL and transaction ID:
-
http://en.bitcoin.it/wiki/MtGox/API/HTTP/v1#Order_Creation Then your template uses that transaction ID for the html form:
-
http://en.bitcoin.it/wiki/MtGox/API/HTTP/v1#Dynamic_ButtonTo use the API, you'll need an API key and secret that you've added to your Mt. Gox account created using the "Merchant" role.
Then those two pieces of data are used to build the request header. It is a little technical (i.e., a little programming knowledge is helpful).
-
http://en.bitcoin.it/wiki/MtGox/API/HTTP#AuthenticationI don't know how easy it would be then to tweak your shopping cart software to be compatible with Mt. Gox. They have one shopping cart they work with -- Magento. They've released their extension for it:
-
https://github.com/MtGox/magentoHere's an overview of Mt. Gox merchant tools:
-
http://mtgox.com/merchant