Phase 1: Upgrade JS Checkout to Modular (Part 2/2)
References #283
Continues #293, To be Merged after
Part 2 of JS Modular Checkout:
- Adds support for Ajax Based Refresh
Working Demo:

Update: Rebased Branch from the Forked Branch (thisisayush/modular-checkout) [ #293 ], Added Support for Auto Refresh on Order Expire and Fixed Decimal Places

@DarrenWestwood
As discussed, I've separated the get_order endpoint which only contains the relevant information required for Updating in JS, it provided us with the flexibility of using the backend for some things we were calculating in the front, such as the crypto rate. and thus I've moved these things to the API to provide better consistency in data.
Also, I meed a crucial part that was updating QR Code and Payment URIs, which I've added in the latest commit.
Full pull request with all changes: https://github.com/blockonomics/woocommerce-plugin/pull/301