quasar and fattmerchant.js
Has anyone successfully implemented fattmerchant.js into a quasar project?
I downloaded the vue.js based fattmerchant example from https://github.com/kayyali18/fattmerchant-vue and it works fine, however, when I try and do the same thing it quasar the fattjs doesn’t appear to instantiate correctly and is missing the necessary showCardForm() method.
I created a simple test app (pwa) and I’ve tried loading the fattjs in the index.template.html file and also tried using the vue plugin this.$loadScript(‘https://fattjs.fattpay.com/js/fattmerchant.js’).then((). Both methods produce the same result.
Essentially you define the ID of the div for the card number and the CVV. You then instantiate the fattjs library and with the instantiated variable, you call the showCardForm() which loads small iframes in those specified divs.
Any pointers would be great. I could also through this sample app up on github.
Never mind. I figured it out. I had not properly created the cvv div in order for the fattmerchant script to access the div.