WooCommerce VIT Payment Method
I have recently finished developing the WooCommerce VIT Payment Method extension for WooCommerce. It is based off the WooCommerce WLS extension and the WooCommerce Steem Payment Method extension. In addition to the extension, I developed an exchange rate script to determine the current US dollar price of VIT based off the three markets where it is traded. I also developed a simple web API for the extension to query to get the latest transfers to the WooCommerce store owner's VIT account.
In addition to making payments through a VIT wallet such as on Touchit.Social, the plugin is integrated with the WhaleVault browser extension. This week I finished up final testing and today I'm releasing the extension. You can download the extension from Github. I am in the process of getting it listed in the Wordpress Plugin Directory.
I have included the README content below for more information. If you encounter any problems with the extension, please open an issue in the Github Repo.
WooCommerce VIT Payment Method
Accept VIT payments in your WooCommerce store via a VIT wallet or WhaleVault. Automatically converts from fiat (USD, EUR, etc) to VIT. No transaction fees.
Supported VIT Currencies
- VIT (VIT)
- There is no extra transaction fee. Payments are made directly between customer and store owner via the VIT Blockchain.
- This plugin will automatically detect if payment was made once it is posted to the VIT Blockchain.
- If payment is not completed within several minutes of submitting an order an automatic payment reminder email will be sent to the customer with instructions for submitting payment. This is a fallback for 1) the customer doesn't complete the transaction, and 2) the payment detection functionality in this plugin stops working for any reason.
- Currency exchange rate between FIAT and VIT is automatically calculated at time of checkout.
- Currency exchange rate between FIAT and VIT can be optionally displayed below the product price on the product page.
- Currently supports different fiat currencies such as: AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, GBP, HKD, HRK, HUF, IDR, ILS, INR, JPY, KRW, MXN, MYR, NOK, NZD, PHP, PLN, RON, RUB, SEK, SGD, THB, TRY, ZAR, EUR
- If none of the fiat currency listed above, it will default 1:1 conversion rate.
How it Works Behind The Scenes
- Exchange rates are updated once an hour
- FIAT foreign exchange rates are gathered from the European Central Bank's free API
- VIT exchange rates are determined by querying a VIT exchange rate data feed at isfor.me/rates. The rate is derived from taking the average of three exchange markets: IDAX VIT_BTC, IDAX VIT_ETH, and Steem Engine Dex VITP_STEEMP.
- Your store's VIT wallet is scanned every 5 minutes for pending transactions (if there are any orders with pending payment)
- If an order is Pending Payment for too long it will be automatically canceled by WooCommerce default settings. You can change the timing or disable this feature in WooCommerce -> Settings -> Products -> Inventory -> Hold Stock (Minutes)
WooCommerce plugin must be installed before you install this plugin.
This plugin requires WordPress CRON jobs to be enabled. If CRON jobs are not enabled, currency exchange rates will not be updated and this plugin will not be able to search for VIT payment records. If your exchange rates are not updating or if orders were paid for but still say "Payment Pending" or are automatically canceled, it is likely that CRON jobs are not enabled on your server or are not functioning properly.
Order payments should normally be reflected in the order automatically within 5 to 10 minutes. If the order is is still status Payment Pending or becomes cancelled after more than 10 to 15 minutes, it is likely that your CRON jobs are not enabled.
An alternative to using WordPress CRON jobs is setting up a real Crontab. A real Crontab is more efficient than using WordPress CRON jobs, and so you may prefer this approach. You can find instructions for setting up a real Crontab here: https://helloacm.com/setting-up-a-real-crontab-for-wordpress/
You will NOT be required to enter any VIT private keys into this plugin. You only have to provide your VIT username so that the plugin knows where payments should be sent.
Special thanks to AnatoliyStrizhak for developing the WooCommerce WLS plugin, based on the plugins below.
Authors claim no responsibility for missed transactions, loss of your funds, loss of customer funds, incorrect or delayed exchange rates or any other issue you may encounter as a result of using this plugin. Use this plugin at your own risk.
The WooCommerce VIT Payment Method is a free, open-source extension for WooCommerce software. WooCommerce name and trademark are used to indentify purpose of this plugin software. There is no official partnership or endorsement between WooCommerce and WooCommerce VIT Payment Method.
- Upload the plugin files to the
/wp-content/plugins/woocommerce-vit-payment-methoddirectory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the 'Plugins' screen in WordPress
- Turn on VIT as a payment method in WooCommerce->Settings->Payments. Turn on the "Enabled" switch.
- Update settings for this plugin in WooCommerce->Settings->Payments and clicking "Manage" next to "VIT"
- Make sure to put your VIT username in the "Payee" box so that you will receive payments.
- Make sure that WordPress CRON jobs are enabled. If you are not sure how, you should ask your web host to help.
- Recommended: Try some sample test transactions with small amounts to make sure payments are received and they are registered in the order.