Skip to content

HazeDev/OpenCart_Hazecoin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCart_hazecoin

by John Atkinson (jga) from BTC Gear

updated to use hazecoin instead of bitcoin by HazeDev 2015

Donations can be paid here: 12ctRXVVPAXQ6CQyEXkBhvi33K7kP4CMB5 to the original author

Initial bounty paid by cablepair.

This is an OpenCart payment module that communicates with a hazecoin client using JSON RPC.

This code accurately converts USD to HAZE using the current btce average. It is completely self contained and requires no cron jobs or external hardware other than a properly configured hazecoind server. Every order creates a new hazecoin address for payment and gives it a label corresponding to the order_id of the order. It installs like any other OpenCart plugin and it is completely integrated with OpenCart.

This extension has been tested with OpenCart versions between 1.5.2.x and 1.5.4.

Any questions or comments can be sent to Hazecoin@hotmail.com.

Installation

  1. Upload all files maintaining OpenCart folder structure.
  2. Install the payment module in the admin console (Extensions > Payments > hazecoin > Install).
  3. Edit the payment module settings (Extensions > Payments > hazecoin > Edit).
  4. Run at least one test order through checkout up until payment (no payment required). The first order initializes the hazecoin currency and will return 0 HAZE for the order total.

Explanation of Settings

  • hazecoin RPC Username: This is the username in the "rpcuser" line of your hazecoin.conf file.
  • hazecoin RPC Host Address: This is the IP address of the computer hazecoind is running on.
  • hazecoin RPC Password: This is the password in the "rpcpassword" line of your hazecoin.conf file.
  • hazecoin RPC Port: This is the port number in the "rpcport" line of your hazecoin.conf file. The default port is 8332.
  • The prefix for the address labels: The addresses will be assigned to accounts named with the format [prefix]_[order_id].
  • Show HAZE as a store currency: If you select yes, your customers will be able to view prices in HAZE.
  • Status of a new order: Choose a status for an order that has received payment with 0 confirmations.
  • Status: Enable the hazecoin payment module here.
  • Sort Order: Where you want this module to show up in relation to the other payment modules on the checkout page.

New in version 1.1.0

Orders are only confirmed (and created in the admin console) once initial payment has been received (0 confirmations).


Copyright (c) 2012 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.

About

Open_cart Hazecoin plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 75.6%
  • Smarty 24.4%