Navigation Menu

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

Delegate method apphudNonRenewingPurchasesUpdated don't work correct with refunded purchase #73

Closed
fury21 opened this issue Jan 30, 2022 · 1 comment

Comments

@fury21
Copy link

fury21 commented Jan 30, 2022

Hi!
When i refnding purchase in storeKit manager i expect that delegate will called, but nothing to happening.
In explanation of this method written: "Called when any of non renewing purchases changes. Called when purchase is made or has been refunded."

May be i don't understand somthink?

@ren6
Copy link
Contributor

ren6 commented Mar 15, 2022

Hello!
Sorry for long response time. We are focused on our online chat supported and missed your issues in Github.
Shortly speaking, refunds are working correctly, but not updated in LocalStoreKit and this is fine.
To overcome this issue you may call Apphud.restorePurchases method in your UI because refunded transaction is not being called in paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) method.
This is not a problem in production, because refunds are being notified via App Store Server Notifications and status polling.
In Local StoreKit we do not have subscription status polling. It's just a simplified logic, which serves just to test your in-app purchase flow. There are some additional limitations due to simplified logic. Please check here: https://docs.apphud.com/testing/ios#local-storekit-testing

@ren6 ren6 closed this as completed Mar 15, 2022
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

2 participants