blockonomics/woocommerce-plugin

NOJS modular checkout

shivaenigma opened this issue · 2 comments

image

Currently its showing the above. Which is quite ok. With NOJS we this current limitation:

  • We cannot refresh the price after 10 min, so basically customer can pay on same price even after days (kind of small loophole)

Lets discuss what exactly what we propose to do in NoJS

UI PR added to the issue.

As for refreshing the price after 10 mins, we can use meta http-equiv refresh in HTML to trigger auto refresh after the predefined time.

Docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#examples
CanIUse: https://caniuse.com/mdn-html_elements_meta_http-equiv_refresh

On backedn we have to either recalculate price and do some warning if btc amount changed by much