I\'ve recently been trying to implement InAppPurchase2 in an ionic capacitor app and all the callback functions are prompting the error "x is not a function" in my chr