Difference between revisions of "BitWillet"

From Bitcoin Wiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
An easy shopping cart interface allowing a site to easily accept Bitcoins as payment.  
 
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<ref>[http://twitter.com/#!/BarbaraEMac/statuses/85754176562401280 Ok! The time is now! Announcing BitWillet]</ref>, and closed for new signups on June 2, 2012<ref>[http://www.bitwillet.com/ http://www.bitwillet.com]</ref>.
 
 
The service was launched on June 28, 2011<ref>[http://twitter.com/#!/BarbaraEMac/statuses/85754176562401280 Ok! The time is now! Announcing BitWillet]</ref>.
 
  
 
=== 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 purchase 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==
Line 33: Line 30:
  
 
* [http://www.bitwillet.com BitWillet] web site
 
* [http://www.bitwillet.com BitWillet] web site
* [http://dev.getwillet.com Willet] web site
 
 
 
* [http://news.ycombinator.com/item?id=2706170 Hacker News Announcement] web site
 
* [http://news.ycombinator.com/item?id=2706170 Hacker News Announcement] web site
 
* [http://www.reddit.com/r/Bitcoin/comments/ibfxf/my_weekend_project_accept_bitcoin_on_your_website/ Reddit Announcement] web site
 
* [http://www.reddit.com/r/Bitcoin/comments/ibfxf/my_weekend_project_accept_bitcoin_on_your_website/ Reddit Announcement] web site

Latest revision as of 20:15, 2 June 2012

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

The service was launched on June 28, 2011[1], and closed for new signups on June 2, 2012[2].

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 purchase 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