better reload on 3DSecure auth failure
This commit is contained in:
@@ -42,7 +42,16 @@
|
||||
// payment method if liablity was not shifted
|
||||
instance.clearSelectedPaymentMethod();
|
||||
paymenterrordiv.innerHTML = '<p class="message">3D Secure Card Verification Error. Please check your card details.</p>';
|
||||
var xhr = new XMLHttpRequest();
|
||||
console.log('preparing message');
|
||||
xhr.open('GET','/rowers/errormessage/3dsecure/');
|
||||
console.log('sending message');
|
||||
xhr.send();
|
||||
console.log('message sent');
|
||||
xhr.onreadystatechange = function() {
|
||||
console.log('reloading');
|
||||
window.location.reload();
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user