I’m encountering an issue where payments made using a slow test card are eventually refunded because they aren’t acknowledged in time.
Environment:
- Google Sandbox environment and slow test card
- Android SDK 8.11.0
- Real-time Developer Notifications have been configured as described here
STR:
- Purchase a non-consumable (lifetime subscription) using a slow test card
- While the transaction remains pending, close the app and wait approximately 7 minutes
- Reopen the app
Expected Result: The user has the non-consumable (lifetime subscription), and the payment completes successfully
Actual Result: The user does not have the non-consumable (lifetime subscription), and the payment is refunded. Also, there is an email from Google indicating the purchase was cancelled due to lack of acknowledgment:
This test purchase was cancelled because it was not acknowledged. You should ensure that all purchases are acknowledged so that they are not subject to refunds. For more information, see https://developer.android.com/google/play/billing/integrate#process
Is it possible for the RevenueCat backend to automatically acknowledge a pending purchase in this scenario? If yes, how should I configure the sdk to ensure acknowledgments occur before Google refunds the payment?