/bitstamp-btc-exchange-rate-oc

OpenCart extension that automatically updates the BTC-USD Exchange Rate using data obtained from Bitstamp

Primary LanguagePHP

Bitstamp Bitcoin Exchange Rate v1.0

OpenCart Extension

by John Atkinson (jga) from BTC Gear (http://www.btcgear.com)

changed to use Bitstamp BTC price by Lisandro Gallo (lisogallo)

Donations: 1CPb9QZBkz3gD1rvG9ekNFK5k6jpUycika

This OpenCart extension initializes the Bitcoin (BTC) currency inside OpenCart and updates the exchange rate every minute to remain current. It calculates the average trade value (from high and low values obtained) or pulls the last trade value, all from Bitstamp, and uses whichever one is friendlier for the merchant thus lessening the currency risk.

This extension only works with USD currency supported by the Bitstamp API.

Compatible with OpenCart versions:

  • 1.5.0
  • 1.5.0.2
  • 1.5.0.3
  • 1.5.0.4
  • 1.5.0.5
  • 1.5.1
  • 1.5.1.1
  • 1.5.1.2
  • 1.5.1.3
  • 1.5.2
  • 1.5.2.1
  • 1.5.3.1
  • 1.5.4
  • 1.5.4.1
  • 1.5.5
  • 1.5.5.1
  • 1.5.6
  • 1.5.6.1

--

Based on the Bitcoin Exchange Rate v1.2 by John Atkinson (jga) from BTC Gear https://github.com/btcgear/Bitcoin_Exchange_Rate_OpenCart

Modified by Lisandro Gallo (lisogallo) - Email: liso [at] riseup (dot) net

Copyright (c) 2013 John Atkinson (jga)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.