CUG Testing

Juspay CUG Testing
  • The Closed User Group (CUG) functions as a testing process to validate new features and UI adjustments before deploying them into the live production environment.

  • This step ensures that modifications do not disrupt the smooth flow of live transactions.

  • It is highly recommended to perform CUG testing on your live Play Store / App store app unless specific payload/sdk level changes are required from your end to validate and test the feature.

  • Upon successful validation of UI changes and feature functionality within the CUG environment, please provide your approval so that we can initiate the release process.

  • Once the release is completed, the updated features and UI modifications will be rolled out to all live users, ensuring a seamless transition.

Warning

CUG changes take time to reflect on Android/iOS devices hence it is recommended to terminate the app a couple of times to get the changes.

Android

  1. Install the CUG apk that is mentioned below

  2. Once installed, try loading your app's payment page for 3-4 times. If changes are still not visible then you might also try clearing the cache of your app.

  3. Post the above steps, you will be able to see the changes.

    Note

    Once installed, the CUG APK will not create any app on your Android device. Therefore, after installing the CUG APK, you can directly begin testing the flow.

iOS

For iOS Version < 16

Change your iOS device name (Settings > General > About > Name) to Whale999

  1. Once done, try loading your app's payment page.

  2. In 3-4 runs you will start getting the new bundles and you can start testing

For iOS version = > 16

  1. Please find the CUG.ipa file attached below.

  2. Upload the downloaded file on https://www.diawi.com/link icon and scan from your iOS device.

  3. Please also do the below steps.
    Settings > General > Device Management and Trust > Juspay Technology Pvt Ltd.

  4. Once installed, try loading your app's payment page.

  5. In 3-4 runs you will start getting the new bundles and you can start testing.

    Note: For iOS, if it's not working even after 3-4 runs, please check in your Info.plist file, if an entry for cugext exists. If not, please add and try again.

Desktop Web

  1. In chrome tab, while on the payment page, change the user agent to Hyper/track=cug

  2. You can do the above by doing: inspect > 3 dots on top right > more tools > Network conditions > user agent > disable use browser default -> below enter Hyper/track=cug

  3. After changing the user agent refresh the payment page and you will start getting the updated bundles.

    Desktop Web
    Desktop Web

iOS Mweb

  1. Connect your iOS device to your desktop and open safari browser on your desktop and on your iOS device.

  2. In your iOS device’s safari browser, open the website required or go to payment page.

  3. In desktop safari browser, go to develop option > select device name connect > click on web url you want to inspect.

  4. Once inspect opened, you can device setting option at top.

  5. Click on user agent dropdown > select Other > enter Hyper/track=cug,iPhone > click enter button.

    iOS Mweb
    iOS Mweb

Android Mweb

  1. Connect your android device to your laptop and enable/allow USB debugging option in your android device.

  2. In android device’s chrome browser, open the website required or go to payment page.

  3. In desktop chrome browser, go to chrome://inspect/#devices option > click on web url you want to inspect

  4. Once you click inspect -> change the user agent to Hyper/track=cug, Android

  5. You can do the above change by following these steps :- Click on ‘Inspect’ > 3 dots on top right > more tools > Network conditions > user agent > disable use browser default > below enter Hyper/track=cug, Android

  6. After changing the user agent refresh the payment page and you will start getting the updated bundles.

Webview Implementation in App

For merchants who have integrated Juspay Payment Page via webview within their native app, testing the flows by pointing directly to CUG is not possible. As a workaround, to enable CUG testing, add the following code snippet to set the User-Agent before initializing the WebView. This can be used temporarily for testing purposes.

Last updated 1 month ago