Difference between revisions of "BitWillet"

From Bitcoin Wiki
Jump to: navigation, search
Line 6: Line 6:
  
 
=== How It Works ===
 
=== How It Works ===
*A buyer clicks a 'Buy with BTC' button / link.
+
* A customer clicks a 'Buy with BTC' button / link.
*After they have selected to purchase the digital goods, they will be prompted to enter their Bitcoin client and transfer the BTC.
+
* BitWillet provides a unique Bitcoin address.
*Once BitWillet has received enough confirmations, BitWillet POSTs the purchase information to a specified URL.
+
* Once payment to that address is confirmed, BitWillet POSTs the purcahse information to a specified URL.
*Upon receiving a POST notification, a seller simply verifies the message came from BitWillet and redirect sthe user to the URL for the digital goods!
+
* The URL can redirect the customer to the digital goods, record purchase information, etc.
*Optionally, sellers can record the purchase information for future reference!
 
  
 
=== Integration Details ===
 
=== Integration Details ===
Integration is really easy!
 
  
 
==== Client-Side ====
 
==== Client-Side ====
* Include: <script src="http://www.bitwillet.com/plugin/bitwillet.js" type="text/javascript"></script> on your site.
+
* The BitWillet JavaScript is loaded by adding <code><script src="http://www.bitwillet.com/plugin/bitwillet.js" type="text/javascript"></script></code>.
* Create a BitWillet button or link as follows:  
+
* A button or link which initiates the BitWillet offer is added:
<a onClick="bitwillet( 'OFFER_ID' );" href="#">  
+
 
      Purchase "OFFER_TITLE" with Bitcoins!
+
    <a onClick="bitwillet( 'OFFER_ID' );" href="#">  
</a>  
+
          Purchase "OFFER_TITLE" with Bitcoins!
<noscript> Please enable Javascript to access "OFFER_TITLE". </noscript>  
+
    </a>  
 +
    <noscript> Please enable Javascript to access "OFFER_TITLE". </noscript>  
  
 
==== Seller-Side ====
 
==== Seller-Side ====
* Implement a POST handler to receive BitWillet's callback and redirect a buyer to the digital goods!
+
* A URL handler is created which will accept BitWillet's purchase confirmation POST.
  
 
==See Also==
 
==See Also==

Revision as of 21:46, 28 June 2011

An easy shopping cart interface allowing a site to easily accept Bitcoins as payment.

The service is built on Willet which can also be used to accept credit card payments.

The service was launched on June 28, 2011[1].

How It Works

  • A customer clicks a 'Buy with BTC' button / link.
  • BitWillet provides a unique Bitcoin address.
  • Once payment to that address is confirmed, BitWillet POSTs the purcahse information to a specified URL.
  • The URL can redirect the customer to the digital goods, record purchase information, etc.

Integration Details

Client-Side

   <a onClick="bitwillet( 'OFFER_ID' );" href="#"> 
         Purchase "OFFER_TITLE" with Bitcoins!
   </a> 
   <noscript> Please enable Javascript to access "OFFER_TITLE". </noscript> 

Seller-Side

  • A URL handler is created which will accept BitWillet's purchase confirmation POST.

See Also

External Links

References