Bitcoin Forum
November 09, 2024, 06:06:21 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: SendBitcoins.net - Developer Thread  (Read 581 times)
Nachtwind (OP)
Hero Member
*****
Offline Offline

Activity: 700
Merit: 507



View Profile
March 03, 2013, 11:44:19 PM
 #1

Hi,
A few days ago I started my SendBitcoins.net service (https://bitcointalk.org/index.php?topic=147742.0) which basically offers a replacement for paypal services for easier integration of Bitcoin in web projects.
What means replacement in this context? So most shopping cart solutions, CMS donation or subscription systems or simple donation buttons use the so called Paypal IPN system. This System sends a few commands via POST to Paypal which then calls a file on the webserver which then handles the donation notification, or tells the shop that a purchase was made.
Long story short SendBitcoins.net is offering the same API to be used with Bitcoins (so far only for prepaid accounts, but this will change in a short while).

So, every Paypal IPN script uses this address to send data to.
https://www.paypal.com/cgi-bin/webscr

To use Sendbitcoins.net all you have to change is this address to
http://www.sendbitcoins.net/backend.php

And your script should be done and ready to run.

There are of course, a few things to be noted. As of now SendBitcoins.Net only accepts the "currency_code" variable to be set to "BTC" and the "business" address must have an account on the website.

With these things in mind you can convert pretty much every Paypal compatible script to work (also) with SendBitcoins.

So what is this thread now about?
Basically i want to offer a platform for developers to share ideas how to extend the service by new methods or variables and i want to give informations on the currently operating functions here.
Nachtwind (OP)
Hero Member
*****
Offline Offline

Activity: 700
Merit: 507



View Profile
March 03, 2013, 11:44:37 PM
 #2

Variables:


  • business
    This is the E-Mail address of the receiver or shop.
  • cmd
    This parameter serves the purpose to set up the right handling of the transaction. Possible Values are:
    _xclick
    This is the most basic command useful for donation buttons and very simple carts.
    _cart
    This has been added for legacy compatibility with various scripts. Please note that this is not at all needed for a shopping cart.
    _xclick-subscriptions
    Currently not active. This value adds a subscrition which will run till a set date or until the user cannot pay anymore in which case a cancel notice will be dispatched automatically.
  • item_name[_#]
    This is the name of an item that is purchase.
  • item_number[_#]
    This is the item number or SKU of an item that is purchased.
  • amount[_#]
    This is the price of the item defined in item_name[_#]. Its the single unit price.
  • quantity[_#]
    It is the quantitiy of item_name[_#] that was bought and therefor a multiplicator for amount[_#]. The total sum will be automatically calculated.
  • currency_code
    As of now only BTC will work. For future versions an automatted currency conversion will be available. But as of now only BTC is supported.
  • notify_url
    This is the address pf your IPN file.
  • return
    (optional) The link back to your website.
Nachtwind (OP)
Hero Member
*****
Offline Offline

Activity: 700
Merit: 507



View Profile
March 03, 2013, 11:44:45 PM
 #3

-reserved-
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!