Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 3.34 KB

README.md

File metadata and controls

45 lines (29 loc) · 3.34 KB

OpenCart_Litecoin

by John Rayes (live627)

by John Atkinson (jga) from BTC Gear - made original Bitcoin version

Donations can be sent here: LXtkHiEXGmZuhAk7WvbCSfXKgGsUVcmQGm

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

This code accurately converts USD to LTC using the up-to-the-minute BTC-E average. It is completely self contained and requires no cron jobs or external hardware other than a properly configured Litecoind server. Every order creates a new Litecoin 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.

Installation

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

Explanation of Settings

  • Litecoin RPC Username: This is the username in the "rpcuser" line of your Litecoin.conf file.
  • Litecoin RPC Host Address: This is the IP address of the computer Litecoind is running on.
  • Litecoin RPC Password: This is the password in the "rpcpassword" line of your Litecoin.conf file.
  • Litecoin RPC Port: This is the port number in the "rpcport" line of your Litecoin.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 LTC as a store currency: If you select yes, your customers will be able to view prices in LTC.
  • Status of a new order: Choose a status for an order that has received payment with 0 confirmations.
  • Status: Enable the Litecoin 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.