To test your application you must have the following
The Google account as a licensed tester for the Google Play Console account
The package name matches the app that is configured for Google Play
With the help of a licensed tester account, you will be able to:
Bypass the Google Play billing check for apps that aren't signed and uploaded to Google Play.
Access test payment methods that avoid a real charging.
You can use the test payment methods to simulate payment accepted and payment declined.
⚠️ Please note:
Should be at least equal to the one you have uploaded to Google Play Console with Purchasely SDK
You should do an release internal testing version to do a test
Make sure to add the users to testers and license testers as well
Creating License Tester account:
More information on Android developer website
Complementary details about the test purchase process:
Test purchases use the same app purchase flow as the actual purchases
Taxes are not computed for test purchases.
Google Play indicates a test purchase by displaying a notice across the center of the purchase dialog.
For your attention
Test accounts must be on the tester's Android device.
If the device has more than one account, the purchase is made with the account that downloaded the app.
If none of the accounts have downloaded the app, the purchase is made with the first account.
Test one-time products
Test consumable products
While testing consumable products, Google recommends to test various scenarios as follows
Successful payment where users receive the item, with the license tester account using the Test instrument, always approves payment method.
Failed payment where user shouldn't receive an item, with the license tester account using the Test instrument, always declines payment method.
Check if items can be purchased multiple times.
Verify the purchases are acknowledged.
Test non-consumable products
Non-consumables should be tested the like a consumables, but you should check if an item cannot be purchased again within your app. Be sure to verify purchase acknowledgement for both non-consumables and consumables (when applicable) since the logic to process the two types of purchases vary.
Test subscription specific features
The purchase flows for one-time products and subscriptions are the same. However, subscriptions have additional scenarios, such as successful or declined subscription renewals. To test the same, you can use Test instrument, always approves and Test instrument, always declines payment methods as a license tester. You should make sure that the purchases are acknowledged.