You can only set up a one-time or recurring plan on your platform. Both types cannot be used at the same time.
To find out how to set up in-apps purchases for buying recurring subscription and how to set up server to receive Plays Store server notification, please refer How to set up in apps purchase in Android (for client)
TEST PLAY STORE SERVER NOTIFICATION
- Go to Play console: https://play.google.com/apps/publish
- Select your app
- Scroll to Monetize, click on Monetization setup
- Click on Send test notification
- Go to Google console: https://console.cloud.google.com/
- At Navigation menu, scroll to ANALYTICS section, click on Pub/Sub
- Click on Topic ID
- Click on subscription ID
- You can view the request count at METRICS tab
CREATE TEST ACCOUNT
- Go to Play console: https://play.google.com/apps/publish
- Select the app you want to create test account
- At Navigation menu, scroll to Testing section, click on Internal testing and select Testers tab
- Click on Create email list
- Create email list
(1) List name: Enter your list name
(2) Add email address: Enter email address of testers
(3) Upload CSV file: If not enter email at (2), you can upload csv file here
(4) Email addresses added: List the email that you enter or upload
(5) Save changes
- Enable the list name and click on Save button
TESTING IN APPS PURCHASE ON DEVICE
- Open Play Store and login the email you created test account
- Open your app and buy subscription, you will see the test card
- Click on the test card, you can choose the case to test: approve or decline.
- After buy subscription successfully (approve or decline), you can view the order manager by accessing https://play.google.com/console and opening Order Management menu
Note: Renewal periods: Test subscriptions renew more quickly than actual subscriptions, and test subscriptions can renew a maximum of six times.
The following table lists the testing renewal times for subscriptions of various durations. These times are approximate.