Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Accept VIT payments in your WooCommerce store via a VIT wallet or WhaleVault.

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
license.txt
Notifications You must be signed in to change notification settings

crypto-ali/woocommerce-vit-payment-method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wc-plus-vit.png

VIT Payment Method for WooCommerce

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)

Details

  • 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.

Currency Limitations

  • 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) via the VIT Web API. See below for more info.
  • 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)

VIT Web API

To scan your VIT wallet, the plugin sends a GET request to the VIT API with your VIT username as the account parameter. The API responds with a list of recent transfer operations involving that account that it finds on the VIT blockchain. The plugin then searches that transfer data for the matching transfer data (amount, memo, etc).

Additional information about the VIT API: Documentation | API Terms of Service | API Privacy Policy

Technical Requirements

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/

Security Note

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.

Screenshots

vit-pmt-plugin-1.png

vit-pmt-plugin-2.png

vit-pmt-plugin-3.png

vit-pmt-plugin-4.png

vit-pmt-plugin-5.png

vit-pmt-plugin-6.png

Thanks

  • Special thanks to AnatoliyStrizhak for developing the WooCommerce WLS plugin, based on the plugins below.

  • Special thanks to @sagescrub for forking the original "WooCommerce Steem" and making the "WooCommerce Steem Payment Method" plugin. Thank you @sagescrub!

  • Special thanks to @ReCrypto for being the author and inventor of the original "WooCommerce Steem" plugin. Thank you @ReCrypto!

Disclaimers

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 VIT Payment Method for WooCommerce 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 VIT Payment Method for WooCommerce.

Installation

  1. Upload the plugin files to the /wp-content/plugins/woocommerce-vit-payment-method directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Turn on VIT as a payment method in WooCommerce->Settings->Payments. Turn on the "Enabled" switch.
  4. Update settings for this plugin in WooCommerce->Settings->Payments and clicking "Manage" next to "VIT"
  5. Make sure to put your VIT username in the "Payee" box so that you will receive payments.
  6. Make sure that WordPress CRON jobs are enabled. If you are not sure how, you should ask your web host to help.
  7. Recommended: Try some sample test transactions with small amounts to make sure payments are received and they are registered in the order.

About

Accept VIT payments in your WooCommerce store via a VIT wallet or WhaleVault.

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
license.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages