Private
Public Access
1
0

better reload on 3DSecure auth failure

This commit is contained in:
Sander Roosendaal
2019-07-25 16:37:41 +02:00
parent 92f5ee76e5
commit 787009656e
3 changed files with 19 additions and 0 deletions

View File

@@ -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();
};
}
});