module-braintree-magento2 icon indicating copy to clipboard operation
module-braintree-magento2 copied to clipboard

Update virtual.js

Open cmpktwrkshp opened this issue 3 years ago • 0 comments

Update required to allow for Braintree Virtual Terminal to submit a transaction.

Without this fix, the inspector console shows a JS error when the "Take Payment" Button is clicked.

virtual.js:145 Uncaught TypeError: this.$container.validate is not a function at UiClass.submitOrder (virtual.js:145:29) at HTMLFormElement.dispatch (jquery.js:5430:49) at elemData.handle (jquery.js:5234:47) at Object.trigger (jquery.js:8719:28) at HTMLFormElement. (jquery.js:8797:30) at Function.each (jquery.js:385:35) at jQuery.fn.init.each (jquery.js:207:27) at jQuery.fn.init.trigger (jquery.js:8796:25) at $..._click (button.js:48:31) at $..._click (jquery-ui.js:143:41)

Access to a Demo site to replicate this issue is available upon request.

cmpktwrkshp avatar Oct 06 '22 23:10 cmpktwrkshp