Built into the Elastic Path
react-pwa-reference-storefront master branch is support for the PunchOut integration. The storefront detects if a cookie containing an access token is placed into the browser during redirection from a buyers procurement system to the storefront. This token identifies the specific user coming from the procurement system in the storefront and will use this token to enable shopping on the shopper’s behalf. During checkout in the storefront, the shopper will be redirected back to the initial procurement system with all of the checkout items conveniently populated.
To set up the storefront to be part of the integration, you must adjust the configuration file on the storefront to point to the Cortex Lambda’s. Upload a distribution of the storefront to a Content Delivery Network (CDN) and ensure the Lambda configuration is pointing to the CDN where the storefront is hosted.
Setting up the integration
- Clone the react-pwa-reference-storefront repository.
- Go to the
cortexApi.pathkey to point the application to Cortex Lambda’s.
- In the root directory, run the
- Upload the
distfolder up into your CDN of choice.
- Go to the Lambda configuration and ensure that it is pointing to the CDN that is hosting the storefront.