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.
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
I beleive the webhook should be fine, I’ll try myself to in a bit, as it was pretty simple if following the instructions
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.
@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!
Hi @benjaminoo,
Did you manage to get the ETN on the invoice?
I’ve just had a mess around with your code to see if I could get it passed through. First time modding woocommerce plugins
So I added this on line 34 of electroneum_ips_library.php
It shows the ETN paid at the bottom of the invoice, which I believe is a nice enough start. Hopefully you can integrate it and possibly find a nice place for it
It is in fact a plugin. It should already be available in the Wordpress directory if you search for “electroneum”, but hold off for another few hours before you install. I’ve uploaded a new version (version 1.1.1) but I’m just waiting for Wordpress to compile the new ZIP files. It takes them a few hours given the large amount of plugins and updates they work with.