Plugin for WordPress Stores - Accept HIVE or HBD payments

in #hive5 years ago

Intro

I was wondering why we haven't seen many online shops accepting HIVE cryptocurrency yet.
That's the reason why I refactored and migrated this project to HIVE.

Link: GitHub Repository
or Download Plugin Here

All you need for an online shop accepting HIVE and HBD is a WordPress website with this and the WooCommerce plugin. It works even without storing any of your keys on your server.

WooCommerce Hive Payment Method

Accept HIVE or HBD payments in your WooCommerce store via HiveSigner.

Supported Hive Currencies

  • Hive (HIVE)
  • Hive Backed Dollars (HBD)

Details

  • There is no extra transaction fee. Payments are made directly between customer and store owner via HiveSigner.
  • This plugin will automatically detect if payment was made once it is posted to Hive Blockchain. Payment detection is not instant; it can take up to 5 minutes for the payment to be detected.
  • 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 HIVE/HBD is automatically calculated at time of checkout.
  • Currency exchange rate between FIAT and HIVE/HBD can be optionally displayed below the product price on the product page.
  • Support for YITH WooCommerce Subscription plugin subscription renewals

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
  • HIVE/HBD exchange rates are determined by querying three exchanges and taking the average: Binance and Bittrex.
  • Binance rates are determined by converting USDT (Tether) -> BTC -> HIVE (HBD is not supported by Binance)
  • Bittrex rates are determined by converting USD -> BTC -> HIVE / HBD
  • Your store's wallet is scanned every 2 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)

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 HIVE 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-10 minutes max. If the order is is still status Payment Pending or becomes cancelled more than 10-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/

Installation

  1. Upload the plugin files to the /wp-content/plugins/woocommerce-hive-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 Hive 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 "Hive"
  5. Make sure to put your Hive username in the "Payee" box so that you will receive payments.

Security Note

You will NOT be required to enter any Hive private keys into this plugin. You only have to provide your Hive username so that the plugin knows where payments should be sent.

Frequently Asked Questions

How is customer payment made?
When the customer initiates payment the HiveSigner window will be opened. HiveSigner will be populated with the payment amount, currency and memo. The automatically generated memo is a random key that is matched to the order.

How does it confirm Hive Transfers?
It uses queries the store's HIVE wallet history every 2 minutes to and checks for a transaction that matches the payment MEMO, amount and currency (HIVE or HBD). When the matching payment is found, the order is marked from "payment pending" to "processing".

What is the payment reminder email?
If the customer does not complete the payment via HiveSigner within several minutes of initiating the payment, a confirmation email will be sent reminding the customer to make payment manually via Hive. The payment reminder email will include instructions including the memo.

How can I support this plugin?
Please support me by following me on Hive @roomservice and consider voting my as your witness, that would really help a lot on my future efforts with this plugin.

Hive: @roomservice
Discord: roomservice#8215

Screenshots

image.png

image.png

image.png

image.png

image.png

Thanks

  • Special thanks to @ReCrypto and @sagescrub for being the authors of the original "WooCommerce Steem Payment Method" plugin before it was forked and updated into this plugin "WooCommerce Hive Payment Method".

Disclaimer

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.

Sort:  

This plugin was just implemented on HiveSwag.io (we launched an hour ago!) -- and is working great. We've already had a completed transaction from @jongolson using HBD! Great work @roomservice -- these sorts of things are what crypto as a whole needs to truly move us into the next generation of payment technology!

Further HiveSwag info:
https://peakd.com/hive-174578/@nulledgh0st/introducing-hiveswag-io-grand-opening-giveaway-custom-designed-hive-gear-and-apparel-for-the-community-giving-away-a-hive-tee

Cool stuff!

Authors claim no responsibility
I think, for a payment segment, that is the most important feature and without that, adoption will not be much.

I understand your point!

Maybe I'll consider offering a full supported version with warranties for a monthly fee if there is demand on it.

I tried to find you on discord. Please join https://discord.steem-engine.com and message me there.

This is YUGE!
Space age2.jpg

I did have the steem version of this on my WordPress site but removed it after it all kicked off a few months ago. Would be great to have this as an official route again and downloadable via the WordPress plug-in page as would like to direct readers of my Hive page to my music store on my website and download with Hive - a great bridge I think between bloggers who offer a product and Hive followers.

If you can work on it with @sagescrub and @recrypto for Hive, that would be pretty epic, thanks for looking in to it again and re-opening this 😃

Thank you for doing this we'll be using this now after leoshop was deactivated. Expect a post soon! (we are re-branding now ).

Super awesome work!

Thanks a lot! Hopefully somebody will give it a try :)

So with this plugin we could use Hive on ANY e-commerce website?

It only works for WordPress - maybe I'll take a look at Shopify as well, if there is any demand.

I thought that wordpress is only a blogging platform...gotta educate myself:)

Excellent. Been waiting for something like this!

great work, as usual!

This is awesome!

Thanks for doing this. I've been waiting for the Hive version of the Woocommerce Steem payment method 🙏

This is SO perfect timing. I'm launching a site today and was trying to figure out a workaround for accepting Hive/HBD. You just made my whole day!!! Thank you so much

That is awesome! You saved me some work of having to do it myself! I will be installing this on all my sites today!

Like I was literally about to sit down this afternoon and start working forking the woocommerce steem plugin, lol! Now for everyone that will have stores, you should post an ad on the Hivelist Classifieds community using the #hivelist or #classifieds hashtags and earn some LIST tokens!

that is awesome!

Amazing stuff guys.

Keep up the good work

Is partial payment Hive Payment supported ? It would be great if the customers could pay both in hive and in fiat . Example : I want to buy something that costs 30 Bucks but only have 20 Fiat at the Moment. It would be great if i can pay the rest in hive at the checkout

Not yet, have to explore if this would be supported by WooCommerce but I'll look into it.

I will be using this service in the beginning of next year, if I can figure it how to implentment it xad

It's pretty easy - just pm me on Discord if you need any help!

Thanks! But I will have to make the homepage first and such :p

Just managed to install it now and checked the prices on my WordPress store - looks like it's all working there! Now I just need someone willing to purchase music via Hive haha!

Thanks for getting this plugin re-activated

image.png

A version of this that is not dependent upon WooCommerce would be fantastic. Something like that could be used like PayPal.

Already installed on thelogicaldude.com!

Awesome job. Thanks for all the awesome work you are doing and have done for Hive! Voted your witness using this tool.

Hi there. I have a question. The cron jobs you mentioned, is this the plug in I need to install and enable? https://wordpress.org/plugins/leira-cron-jobs/

In normal case wordpress comes with default cronjob mechanisms so there is actually no need to install any additional plugins.

The Crontab option is fully optional and doesn't has to be used.

Got it! Thanks dude. Gonna be playing around with that plug in tonight 🤗