> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.cornercart.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Integration Guide for RazorPay with CornerCart

> ⚠️ Warning: CornerCart does not officially support third-party checkouts like GoQwik and Razorpay. While integration is possible, using this method will result in numerous core features malfunctioning or completely breaking. We strongly advise against using these platforms with CornerCart.


Follow these steps to integrate RazorPay Magic with our cart:

1. Copy the following code snippet: 
```javascript
corner.overrideCheckout((cartObject, discountCodeApplied) => {
window.openRzpCheckout()
});
```

2. In our app, navigate to Cart Drawer -> Advanced Settings and paste the code into "Add Custom JS Scripts."

That's it! After completing these steps, every time a user clicks the checkout button, RazorPay Magic checkout popup will appear.
