Testing Integration

The previous section focused on now.gg Payments module Library Integration. This section focuses on testing this integration.

Internal testing allows you to test the payments module integration with your app. You can add a test user to perform in-app purchases using the provided Test Currency and test the complete purchase flow.

  • now.gg Payments service automatically detects a test user. As a test user, you do not have to spend real money to test in-app purchases.
  • We have provided Test Currency to test in-app purchases.
    • Test Currency is unlimited and is used to make test purchases.
To test the Payments module integration with your app:
    1. Add a Test User
    2. Test the Payments Flow

1. Add a Test User

The following steps will help you add a test user account to test the payments module integration with your app/game:

  • Login to nowStudio using your registered developer account.
  • Within the All Apps section.
    • Click on View Details in front of the app name that you wish to test for payment integration.
    • Clik on Payments on the top navigation bar.
  • Click on Internal Testers in the left sidebar.
  • Click on Add Tester.
    • You can either enter the user’s unique userID (IN_GAME_ID), or the email address associated with a now.gg account to be used for testing, as shown below:
    • Click on Add.
      An on-screen confirmation that ‘A tester has been added successfully’will be displayed.
    • (Continue to Test Payments)

2. Test the Payment Flow on BlueStacks 5

Prerequisites

  • BlueStacks 5 (BS5 App Player)
  • Your game/app with now.gg Payments Integration.

To test the payments flow on BlueStacks 5 (BS5), you should:

  • Launch the BlueStacks 5 App player (64-bit).
  • Install the app/game that you have integrated with now.gg payments.
  • Launch your app/game and test the payment flow.
    • If you have provided the user’s unique userID (IN_GAME_ID):
      • Login options won’t be displayed to you, and you will be directly taken to the payment flow when you try to purchase an in-app product.
    • If you have provided an email address associated with a now.gg account:
      • A pop-up will be displayed to log in with your test account (if you are not already logged in) when you try to purchase an in-app product.
      • Use the now.gg account (Facebook/Google/Discord) to log in, as shown below:
      • Make sure to use the same account you added as a tester on nowStudio.
  • On the Payment screen, use Test Currency to make a purchase, as shown below:

    • Test Currency is unlimited and is used specifically for testing the payment flow.

Important Information

  • In-app purchases using Test Currency will not be included in financial reports generated by the Billing Service.
  • Please ensure you are testing your app on the 64-bit version of BlueStacks 5.
  • If you receive a message that ‘No payment method is available for your country’ while making payments, you should either:
    • Change the country property within BlueStacks by following the provided guide.
    • Or, Use a VPN.
      • For example, you may select Hong Kong (HK) as the country to test IAP purchases using now.gg Payments.
  • Enable the debugging environment on BS5, and collect system logs using Logcat.

Demo App

We have also included demo apps for Native Android and Unity.

  • You can install the demo app to understand the IAP payments flow using now.gg Payments.
  • The steps to install the Demo APK are identical to the steps to install your app (listed above).

Need Help?

Contact us at dev-support@now.gg, and we will be happy to assist you.

×
Text copied to clipboard
Link copied to clipbord
Questions? Please reach out to us at dev-support@now.gg