woocommerce-plugin icon indicating copy to clipboard operation
woocommerce-plugin copied to clipboard

Phase 1: Upgrade JS Checkout to Modular (Part 2/2)

Open thisisayush opened this issue 3 years ago • 1 comments

References #283

Continues #293, To be Merged after

Part 2 of JS Modular Checkout:

  • Adds support for Ajax Based Refresh

Working Demo:

screen-recorder-sun-oct-23-2022-13-53-51

thisisayush avatar Oct 23 '22 08:10 thisisayush

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

screen-recorder-tue-nov-01-2022-10-08-59

thisisayush avatar Nov 01 '22 04:11 thisisayush

@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.

thisisayush avatar Nov 15 '22 07:11 thisisayush

Full pull request with all changes: https://github.com/blockonomics/woocommerce-plugin/pull/301

DarrenWestwood avatar Nov 16 '22 09:11 DarrenWestwood