Skip to content
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

"Developer hasn't acknowledged your purchase" #1546

Open
Nikita0x opened this issue Mar 5, 2024 · 1 comment
Open

"Developer hasn't acknowledged your purchase" #1546

Nikita0x opened this issue Mar 5, 2024 · 1 comment

Comments

@Nikita0x
Copy link

Nikita0x commented Mar 5, 2024

Can anybody please help me, how do I "acknowledge the purchase"?

After I subscribe in test environment, if I don't "acknowledge" - Google issues a refund automatically after 5 minutes.
How to acknowledge it?

@Nikita0x
Copy link
Author

Nikita0x commented Mar 6, 2024

All subscriptions must be acknowledged for the google to not issue a refund after 5 minutes. If you acknowledge it - the subscriptions is automatically renewed after 5 minutes up to 12 times and works as expected.
After ploughing through the internet and not finding any info on how to "acknowledge" it, including the documentation of this plugin - I found how to "acknowledge" it.

`

acknowledgePurchase() {

        let test = new CdvPurchase.GooglePlay.Bridge.Bridge();

        test.acknowledgePurchase(
            () => {
            // Success callback
            console.log("Purchase acknowledged successfully");
            },
            (error) => {
            // Error callback
            console.error("Failed to acknowledge purchase", error);
            }, 
            purchaseToken
        );

    }

`

and it successfully acknowledges it.
One thing I really did not understand is why there are 0 documentation on it, 0 comments for this class or its methods, and it is never mentioned in the main read me where it says " you will need these 3 main classes for this plugin to work" while the acknowledgment part is crucial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant