Skip to content

Commit

Permalink
Allow backdrop close with redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
harshilmathur committed Sep 30, 2015
1 parent c9cac81 commit c34accb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/code/community/Razorpay/Payments/Block/Redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,17 @@ protected function _toHtml()
notes: {
'magento_order_id': '".$fields['order_id']."'
},
netbanking: true
netbanking: true,
modal: {
ondismiss: function() {
window.location.href = '".Mage::getUrl('razorpay/redirect/cart')."';
}
}
};
function razorpaySubmit(){
var rzp1 = new Razorpay(razorpay_options);
rzp1.open();
rzp1.modal.options.backdropClose = false;
}
";

Expand Down

0 comments on commit c34accb

Please sign in to comment.