by John Atkinson (jga) from BTC Gear
Donations can be paid here: 12ctRXVVPAXQ6CQyEXkBhvi33K7kP4CMB5
Donations can be paid here: NgJKYsHctQfF8D8r6otTGxdnB6r311NvJf
Initial bounty paid by cablepair.
This is an OpenCart payment module that communicates with a eMark client using JSON RPC. This code is completely self contained and requires no cron jobs or external hardware other than a properly configured eMarkd server. Every order creates a new eMark 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.1 and 1.5.6.4.
Any questions or comments can be sent to [email protected].
This extension now requires previous installation of vQmod and will not run properly without it. vQmod enables making changes to core OpenCart functionality without actually editing the core OpenCart files.
- Install vQmod. Copy folder vqmode into your opencart root folder. Call http://yoururl/vqmod/install/.
- Upload all files maintaining OpenCart folder structure.
- Install the payment module in the admin console (Extensions > Payments > eMark > Install).
- Edit the payment module settings (Extensions > Payments > eMark > Edit).
- Run at least one test order through checkout up until payment (no payment required). The first order initializes the eMark currency and will return 0 DEM for the order total.
- eMark RPC Username: This is the username in the "rpcuser" line of your eMark.conf file.
- eMark RPC Host Address: This is the IP address of the computer eMarkd is running on.
- eMark RPC Password: This is the password in the "rpcpassword" line of your eMark.conf file.
- eMark RPC Port: This is the port number in the "rpcport" line of your eMark.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 DEM as a store currency: If you select yes, your customers will be able to view prices in DEM.
- Time to complete order: The number of seconds a customer has to send eMarks to complete the order.
- Status of a new order: Choose a status for an order that has received payment with 0 confirmations.
- Status: Enable the eMark payment module here.
- Sort Order: Where you want this module to show up in relation to the other payment modules on the checkout page.
- Added a checkout timer.
- Made a number of important bugfixes.
(dont work for eMark)
- Fixed bug caused by Mt.Gox API changes
- Now works with any Mt.Gox-compatible currency as the default currency.
- Exchange rate calculated using both last value and average value.
- Bugfixes, removed "eMarkd" from name of payment method.
- Improved compatibility with third-party themes.
- Checkout page automatically redirects to success page upon payment.
- All checkout language moved to language file.
- Added QR code and URI Click to pay to checkout page.
- Checkout UI revamped. Payment information presented in colorbox. Payment amount and address are easier to select.
- Adds a cleaner user interface during checkout
- Orders are only confirmed (and created in the admin console) once initial payment has been received (0 confirmations).
Copyright (c) 2013 John Atkinson (jga)
See license.txt for license.