Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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...

like image 292
Sachin Basendra Avatar asked Dec 01 '22 15:12

Sachin Basendra


1 Answers

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

"modal": {
    "ondismiss": function(){
         window.location.replace("//put your redirect URL");
     }
}
like image 111
Hardik Patil Avatar answered Mar 01 '23 22:03

Hardik Patil