10.02.2016 Views

Bitcoin and Cryptocurrency Technologies

1Qqc4BN

1Qqc4BN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 4.7: Example payment service interface for generating a pay-with-<strong>Bitcoin</strong> button.​A merchant<br />

can use this interface to generate a HTML snippet to embed on their website.<br />

The process of receiving <strong>Bitcoin</strong> payments through a payment service might look like this to the<br />

merchant:<br />

1. The merchant goes to payment service website <strong>and</strong> fills out a form describing the item, price,<br />

<strong>and</strong> presentation of the payment widget, <strong>and</strong> so on. Figure 4.7 shows an illustrative example<br />

of a form from Coinbase.<br />

2. The payment service generates HTML code that the merchant can drop into their website.<br />

3. When the customer clicks the payment button, various things happen in the background <strong>and</strong><br />

eventually the merchant gets a confirmation saying, “a payment was made by customer ID<br />

[customer-id] for item [item-id] in amount [value].”<br />

While this manual process makes sense for a small site selling one or two items, or a site wishing to<br />

receive donations, copy-pasting HTML code for thous<strong>and</strong>s of items is of course infeasible. So payment<br />

services also provide programmatic interfaces for adding a payment button to dynamically generated<br />

web pages.<br />

120

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!