I am using the Drop in form in the Javascript v3 client SDK to render my credit card form in an Angular JS SPA as follows:
braintree.dropin.create({
authorization: clientToken,
container: '#creditCardForm',
paypal: {
flow: 'vault'
}
}, function (createErr, instance) {
instance.requestPaymentMethod(function (err, payload) {
if (err) {
return;
}
$http
.post('/api/[webAPIPaymentMethod]', JSON.stringify(payload.nonce))
.then(function() {
_showAlert('Payment details were successfully updated.', 'success');
})
}
}
This works like a charm in Chrome and Firefox but for some reason IE11 and Edge just completely bombs and gets infinitely stuck in what appears to be while calling the requestPaymentMethod
in the drop-in form SDK.
I see the following (test credit card used from Braintree documentation) with the progress bar just scrolling away infinitely and nothing else happening until I hard refresh the page.
Anyone run into similar issues? I'm not quite sure what's wrong here.
UPDATE: I have reached out to Braintree support. We do have a staging application that demonstrates this issue but I will have to get the appropriate clearence to provide a link to it. Unfortunately there is no activity whatsoever on the dev console. No errors on the console, no calls to an external Braintree API endpoint on the network tab.
It must be something about how we've done it on our Angular app as the .NET sample in here works fine in Edge and IE11.