The Coinbase Buy Widget is the quickest, most painless way to support bitcoin, ethereum, and litecoin purchases from your app or website.
Try DemoUsers don’t have to leave your site or app to buy digital currency. In about a minute, even users who’ve never purchased digital currency before can make a purchase.
Add your logo. Optionally specify preferred corner radius and color schemes to match your application.
Use our tool to generate a custom code snippet. Copy and paste the code.
Powered by Coinbase - safe, secure, and designed by the world’s leading digital currency company.
Set your receive address, select which currencies to support, and set default purchase amounts (optional).
<a class="coinbase-widget"
id="coinbase_widget"
data-address="DESTINATION-ADDRESS"
data-amount="BUY-AMOUNT"
data-code="WIDGET-CODE"
data-currency="CURRENCY"
data-crypto_currency="CRYPTO-CURRENCY"
href="">Buy bitcoin using Coinbase</a>;
<script type="text/javascript" id="coinbase_widget_loader" class="coinbase-widget-async-loader">
document.currentScript.src ="";
(function() {
function asyncLoad() {
var s = document.createElement("script");
s.type = "text/javascript";
s.async = true;
var theUrl = "https://buy.coinbase.com/static/widget.js";
s.src = theUrl+ (theUrl.indexOf("?") >= 0 ? "&" : "?") + "ref=" + encodeURIComponent(window.location.href);
var embedder = document.getElementById("coinbase_widget_loader");
embedder.parentNode.insertBefore(s, embedder);
}
if (window.attachEvent) {
window.attachEvent("onload", asyncLoad);
} else {
window.addEventListener("load", asyncLoad, false);
}
})();
</script>
Load the provided code snippet, request activation, and go live.
Learn more →Please fill out a short survey to let us know who you are and how you’d like to use the Buy Widget. Our team will be happy to contact you with next steps.
Get started