-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
VueJS? #1237
Comments
Instead of using store, I have been referencing it like this.. import { InAppPurchase2 } from '@ionic-native/in-app-purchase-2' Then within methods: InAppPurchase2.register([{ |
Are using InAppPurchase2 in place of window.store here? document.addEventListener('deviceready', () => { The code is from here |
Yes, I am @jonesart Please see below two examples of how I have used this to replace the store.register and store.when().updated function...
Try importing as I have above and swap store out for InAppPurchase2 and see if it solves your issue |
I'm getting this error in the xcode log ⚡️ [warn] - Native: tried calling InAppPurchase2.PAID_SUBSCRIPTION, but the InAppPurchase2 plugin is not installed. Those plugins should be installed Found 2 Capacitor plugins for android:
|
This is my script. I'm new to Vue, if you have any advice, that would be awesome.
|
I believe the issue is likely what is said on the first two lines, the plugin is not yet installed In your terminal after navigating to the directory containing the project, run
https://capacitorjs.com/docs/guides/in-app-purchases Good luck. If you're absolutely new to Vue, I would start by reading these docs and looking to put the returned data into Vue's data property as currently you're not doing so. I would look to do this for a few reasons, but first and foremost it will make the code cleaner / easier to follow. |
Starting with a fresh project helped. The log is showing data from the app store. the |
Could I email you with some questions? |
Yes, send me or post your email and I’ll follow up when I can
…On Fri, 15 Oct 2021 at 15:10, jonesart ***@***.***> wrote:
@michaelbutler1998 <https://github.com/michaelbutler1998>
Could I email you with some questions?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADY2JHD2BOCLY3EGQ6C7GQLUHAY45ANCNFSM5DSLN3BQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@jonesart Did you manage to get out and use the plugin with Vue? |
I assisted @jonesart with this set up to get their purchases working for
iOS & Android on a consultancy rate basis.
Michael
…On Mon, 29 Nov 2021 at 16:57, Camille Coutens ***@***.***> wrote:
@jonesart <https://github.com/jonesart> Did you manage to get out and use
the plugin with Vue?
I'm going to start with it too, it would be really cool to have your
feedback and/or an example !
🙏🙏🙏🙏🙏
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADY2JHBH6GIFBNERXOZG5BDUOOWJDANCNFSM5DSLN3BQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@michaelbutler1998 So cool! I will try the implementation in the next few days. |
I’ve got push notifications to my emails on this post so will be able to
see if you comment. If you send me your email / leave it here I can also
reach out to you with my personal email so you can contact me with ease
…On Mon, 29 Nov 2021 at 17:27, Camille Coutens ***@***.***> wrote:
@michaelbutler1998 <https://github.com/michaelbutler1998> So cool! I will
try the implementation in the next few days.
If I need help, can I contact you somewhere?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADY2JHFQAUWE5GSNI7ZRSFDUOOZYVANCNFSM5DSLN3BQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
can anyone help me with this?### |
@mashrurbd same offer as above, my emails in my profile |
I have mailed you with the details.Waiting for your help. |
I'm also facing the same problems on my vue project can anyone help me out? |
Hi Arodriguezt / others replying to this thread
I’m can try to assist an hourly consulting basis. If you’d like to discuss
further email me at the email added found in my profile
I would love to offer to help without charging but due to my other
obligations this unfortunately is not possible
BR,
Michael
…On Thu, 10 Aug 2023 at 18:21, arodriguezt ***@***.***> wrote:
I'm also facing the same problems on my vue project can anyone help me out?
—
Reply to this email directly, view it on GitHub
<#1237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADY2JHDS7C2XMHJ4CZG3P6TXUUJ7ZANCNFSM5DSLN3BQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I've solved the payment problem for Ionic/VueJs/Capacitor app. I can also help you @arodriguezt, if you give me more information about your implementation. |
First of all thank you all for offering help, I have tried to implement a simple code using the cordova-plugin-purchase with capacitor after installing
On my Vue.js i have a mounted code that should initialize a product
But when i'm trying it on Android Studio its saying that the plugin InAppPurchase2 its not installed i ran npm install cordova-plugin-purchase npx cap update but still the same error, the bundle is not in play store, i just wanted to try out if the plugin worked in vue Error: Warnings: In my node_modules the plugin appears inside @ionic-native / in-app-purchase i'm missing something? |
@arodriguezt Yes, things have changed on the Google Billing side. I advise you to use only And instantiate it this way in your page
(the rest of the actions are in the doc cordova plugin purchase) |
@arodriguezt what version of the @ionic-native/in-app-purchase-2 are you using & do you have any other conflicting purchase libraries installed in your package.json I haven't updated this library in a while, but with similar code to yours have it working with
|
@michaelbutler1998 I'm using version 5.36.0 I don't understand why with the configuration I have it doesn't work. @Kamsou I have implemented the configuration that you have told me and from android studio no longer appears the warning indicating that it does not detect the plugin, now it appears an error
but I understand that it is related to upload the APK to the play store to use Google Play Store's billing system to process in-app purchases. I will try to upload the apk, get it accepted and test it again to see if it works, thanks to both of you for your help. |
@arodriguezt No, you need to be able to test with one of the Android studio simulators. You need to choose one that has the play store symbol only : |
@Kamsou I tried on a simulator with Google Play Store, but there's no pop up or modal from the plugin
On clicking a product it's passing his ID, this code should open the plugin on android studio? i'm missing something? |
Not necessarily ! You can use simulator of Android Studio, Login with you credentials and test directly. @arodriguezt What is 53 ? you need to create the product first in Play Console.
|
I got really far setting this up in NuxtJS. However, I am stuck at finishing a transaction. Here's my set up:
In my logs on iOS I see this:
So everything up until here seems fine. Then I try to do a purchase like this: That makes the iOS payment pounder show up. I can then hit "pay" and I hear the iOS payment complete sound. Also in my logs I see:
The weird thing is that after that, the payment popunder just re-shows again. So it seems like the transaction never gets finished. My logs don't show anything.
approved does not work. I tried setting logs and alerts but they never get called. Does anyone know why approced is not being called? It feels like I am so close in getting this to work but it just does not finish my purchase... |
Hello @thommydz , for me i should manage payment only in
|
Has anyone got this to work Ionic/VueJs/Capacitor?
I don't think I'm accessing the plugin.
When I build it on my phone, I get [log] - window.store is undefined in the Xcode log.
The text was updated successfully, but these errors were encountered: