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

[iOS] presentCodeRedemptionSheet() #1617

Open
Sreelakshmi-td opened this issue Oct 30, 2024 · 0 comments
Open

[iOS] presentCodeRedemptionSheet() #1617

Sreelakshmi-td opened this issue Oct 30, 2024 · 0 comments

Comments

@Sreelakshmi-td
Copy link

Unexpected Behavior in Subscription Code Redemption Process

I experienced an issue while trying to redeem a subscription offer code via the presentCodeRedemptionSheet. During the first attempt, the money was debited from my account; however, I received a message indicating that the redemption had failed. Despite the initial failure, when I clicked the redeem button again, the process was completed successfully and immediately showed a success message. This inconsistency in the redemption process is concerning, as it might lead to double charging or confusion for users about the status of their subscription activation.

here's the implementation to trigger AppStore code redemption sheet

var appStore = window.CdvPurchase.store.getAdapter(window.CdvPurchase.Platform.APPLE_APPSTORE);

            if (appStore && appStore.ready) {
                await appStore.presentCodeRedemptionSheet()
            }

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