Razor pay payment integration -> How can i detect razor pay model close by close button X

Sachin Basendra picture Sachin Basendra · Jul 12, 2017 · Viewed 7.4k times · Source

i am using Razorpay in CI framework when user close without payment create razor pay model then for cancel order i want a query fire by status changed as cancelled.

So how can i detect this. I am already using by click jQuery click on close function but not working...

Answer

Hardik Patil picture Hardik Patil · Jan 15, 2019

Put this "ondismiss" event script below "handler" event.

"modal": {
    "ondismiss": function(){
         window.location.replace("//put your redirect URL");
     }
}