Download our Checkout template (React app) and customise it for your usecase.
Navigate to src > pages > Checkout folder
src/pages/Checkout/index.js file by updating the DesktopLogo component or point it to a png/jpg source, similar to the mobile logo implementation.
src/pages/Checkout/index.js file by updating the MobileLogo source or implement an svg component similar to desktop logo implementation.
src/pages/Checkout/checkout.styles.js file by updating “bgImage” source, currently pointing at “../Brands/mobile-bg.png”.
products.json file:
index.html file and modify window.onHyperWidgetResize handler and modify window.onWidgetResize handler that informs the client page of the changes in the size of the hyper-widget content using widget.onWidgetResize method.
index.html file and modify widget.onValidPreference handler, pass data.sku on window.checkout.selectRecommendedProduct function.
index.html file and modify window.onSelectCheckoutProduct handler, capture and process the product information and update the widget order using widget.setOrder method.
index.html file and modify onApprove handler with custom logic to complete checkout process