First Electroneum Instant Payments Woocommerce integration

Hi,
I have done it. I uploaded it into my WordPress sit but its not showing on the list if the installed plugins. What should I do?

I have successfully installed the Electroneum woocommerce gateway. However I encountered a little issue. While checking in out with ETN instant payment I got this response below:

" Fatal error : Uncaught Electroneum\Vendor\Exception\VendorException: [0]: Unknown currency thrown in /home/eventbri/public_html/wp-content/plugins/electroneum-ips-gateway/include/vendor/Vendor.php on line 145"

I’m in Nigeria and my selected woocommerce currency is Naira (NGN). Does it mean I can’t use the API yet, or is there a solution for this?

Thanks

5 Likes

great improvement… it is more appealing now

3 Likes

Did you put the folder in the wp-content/plugins directory? Do you have woocommerce installed and activated?

1 Like

Awesome work - now i WISH that this payment method choose every ESHOP at the PLANET and we can using ETN GLOBALY everyday :wink:
Maybe some day - who knows…

1 Like

Hi @Q1kfingers,

Currently, the NGN currency is not supported for live exchange rates as per our API doc:
community.electroneum.com/t/using-the-etn-instant-payment-api/121

I will record this request and will update the above link if we have an update.

Thanks.

Egg

5 Likes

@Egg We need to have all currencies included and Nigeria is big country with amazing potential, also Kenya… and add more translation and make update of the app ASAP best till the end of the September :wink: Thanks

Thanks @benjaminoo, I’ve managed to integrate it into my website and had a few friends test it out.
Amazing work and super easy integration :smiley:

Visit etnmegastore co uk

4 Likes

Alternatively, if coinmarket cap or coin gecko supports ngn, you can use their Web site api to convert your etn values, then pass this value to the qr code.

Otherwise, you can do some math using a global exchange rate api to convert your ngn value to say… usd… then feed this value into the etn api.

Its a bit gimmicky and requires some coding knowledge, but very doable.

4 Likes

Okay thanks for the info. I hope NGN gets included soonest.

Thanks for integrating! It’s truly an honor to see people using the plugin already…

One thing, though, I see you’re still using the first version. Please upgrade to version 1.1.0, which checks for payments in the background and handles order flow much better.

Simply deactivate and delete the plugin on your site as it is now, and then upload the new zip file, install, and activate.

I’m working on getting the plugin in the Wordpress plugin directory, which should make updating much more seamless.

5 Likes

Just spotted your order :smiley: haha
Must have just missed the new release but got it in pretty quick. I wasn’t expecting it to remember my api details, pretty nifty :+1:
So with it checking for the payment, is that using the 1-2 second callback rather than having to press the “I’ve Made the Payment” button?
And I’m really happy to test this as I’m a huge fan of ETN and when I spotted this :open_mouth: I had to get involved.
Again, Amazing Work :+1: :+1: :+1:

3 Likes

It feels great checking out one’s own plugin on another’s website. Thanks for installing!

Yeah, the primary method is to check for payment via the webhook. This happens between your server and ETN’s server and has no timing relation to what the customer sees on the front end. There is a javascript function on the front end that then polls your site’s local database every 2 seconds to see if the order has been marked as complete by the webhook yet. Should that fail to happen for whatever reason (e.g. developer forgot to insert webhook URL, typo in URL, or network issues), the plugin will check with a poll to ETN’s servers once the “I’ve made the payment” button is clicked (which is pretty much foolproof in most cases).

Please put a cheap, temporary, downloadable item in your shop so I can test out the whole thing for you. Don’t really have 2,700 ETN lying around for mobile trigger buttons + shipping. :grinning:

6 Likes

Thanks for this information.

Yeah, the only currencies currently supported are those as appear on the Value tab in the Electroneum app.

I’ll build in a quick check to make sure the store currency is supported and display a more civilized message than the error message you saw.

2 Likes

Sorry, totally forgot to add a cheap product back in, used to have a pumpkin picture :D.
So Added a photo in the New & Photo categories, even reduced it to a penny :rofl:

I beleive the webhook should be fine, I’ll try myself to in a bit, as it was pretty simple if following the instructions :+1:

1 Like

Just had a little test and it worked really well, the Payment Complete screen looked pretty professional :man_office_worker: haha.

Not sure how easy it would be but is there any way of getting the ETN paid on the Invoice?
Thanks

1 Like

Just bought myself a beautiful photo of Barcelona! Thanks!

Worked very well! I’m trying to test the heck out of it, so you might get a lot of pending orders created. I’ve tested it on my own site a lot, but it’s a good thing to test it out on a different build altogether.

I’ll see what I can do regarding getting ETN on the invoice. Shouldn’t be too difficult.

4 Likes

Not to worry, just set the site up so currently bulking it up, have fun :smile: :+1:

You’re great.

I made my first payment. I’m looking forward to the Woocommerce add-on
I want to set up my two websites


www.hijabrunway.com

5 Likes

@ETNCEO as you requested, here is an updated demo of the improved plugin. The plugin now checks for payment in the background every 2 seconds and updates the screen automatically once payment has been processed.

In this demo the success screen on Electroneum101 loads even before the app’s success message is displayed! This system is truly instant, and I’m loving it more every day. Can’t wait for the marketing to start next month!

11 Likes