For user experience purposes, we recommend clearing the customer's cart on the external eCommerce platform or site after you've processed their order with Recharge. This avoids any confusion the customer would experience if they returned to the storefront to see the items they've just purchased are still in the cart.
Your application can listen for the
checkout/processed webhook which confirms an order is successfully processed.
checkout/processed payload contains the cart
id. You can match this ID with the eCommerce platform's cart ID and make the API calls necessary to clear the cart.
Updated almost 2 years ago