-
-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug : store.validator is not defined #1612
Comments
Then just use it properly! https://github.com/j3k0/cordova-plugin-purchase/blob/master/www/store.js#L100-L110 maybe you need to install cordova? |
Thanks for the advice, but my setup is based on a workaround due to #1610, and I don't use Iaptic as a backend, I have my own. I should have put the context in my issue, sorry:
|
did you setup the capacitor config? and sync? |
yes, using the |
I use it also in a CapacitorJS Projekt, but don't have the problems. So I think its something wrong with your setup. Did you import the cordova.js in your html file? |
I don't think it's required to install cordova, but I'm new to capacitor so I'm maybe wrong.
but again, I don't think it's an issue here since my plugin is discovered and usable on both Android and iOs, only the store.validator function is not working properly |
I have test it without the awesome cordova plugins, and I cant see any error. So it looks like its a problem of your setup. |
Observed behavior
The CdvPurchase.store.validator exposes a
store.validator
property, but this property is not defined in the store final build(same for validator_privacy_policy)
Trying to call it will throw errors :
store.validator = (r,c) => {}
tried calling InAppPurchase3.validator, but the InAppPurchase3 plugin is not installed.
(error catching by awesome-cordova-plugins when something is not defined)Expected behavior
No inaccessible properties defined in store.ts src but not accessible in store.js build
System Info
package.json :
Output of
cordova info
.cordova: command not found
The text was updated successfully, but these errors were encountered: