Testing Integration

The previous section focused on Library Integration with the now.gg Payments SDK. This section focuses on testing the integration.

Testing Payments

Internal testing allows you to test the payments SDK integration with your app. You can add a test user to perform in-app purchases using the provided now.gg coins 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.
  • While testing payments, only now.gg coins are accepted, while other payment methods will not work.
    • now.gg coins are free and are added as an option to test the payments.

1. Add a Test User

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

  • Login to now.gg Developer Portal using your registered developer account.
  • Navigate to My Apps.
  • Click on View Details against the App that you wish to test integration with.
  • Click on Internal Testing in the left sidebar.
  • Click on Add Tester.
    • Enter the email address associated with a now.gg account to be used for testing.
  • Click on Add.
  • An on-screen confirmation that ‘A tester has been added successfully’ will be displayed.

2. Test the Payment Flow on BlueStacks 5

Prerequisites

  • BlueStacks 5 (ver. BS 5.6.0.1085 or newer) installed on your test machine.
  • Billing test service, Service_1_2_7_v65_release.apkprovided in the SDK download package.
  • Your game/app with now.gg Payments SDK Integration.

To test Integration on BlueStacks 5 (BS5), you should:

  • Install the Service_1_2_7_v65_release.apk provided in the SDK download package by simply dragging and dropping the APK over the BlueStacks 5 App Player.
  • Add the test user account:
    • Navigate to Android Settings > Accounts > Add account.
    • Select now.gg.
    • Use the test user account to log in.
    • An on-screen confirmation that ‘Account has been added’ will be displayed.
  • Install the app/game that you integrated with now.gg payments SDK.
  • Launch your app/game and test the payment flow.

Test the Payments Flow

Now that your test environment is configured, you can test the payment flow with your app. You should test the purchase flow for a successful purchase and product delivery (entitlement) to the user.

  • While making payment for a purchase, utilize now.gg coins to pay and test the complete payment flow.
    • now.gg coins are free and are added as an option to test the payments.

Important Information

  • In-app purchases using now.gg coins will not be included in financial reports generated by the Billing Service.
  • IP addresses originating from Mainland China are blocked on the Payment API service.
  • Developers located in Mainland China should use either a VPN or a static IP address from another country/region such as Hong Kong, on their test machines to test IAP purchases using now.gg Payments SDK.

SDK Demo App

We have also included an SDK Demo app (SDK_Demo_1_2_7_v65_release.apk) in the download package.

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

Need Help?

Feel free to reach out to us at dev-support@now.gg, we will be happy to assist you.

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