Configuration of Test Accounts for purchase
  • 01 Mar 2024
  • 6 Minutes to read

Configuration of Test Accounts for purchase


Article summary

Below are the steps that you need to follow to test the purchase of the product:

  1. To test the purchase of the product before making it live, we need to make sure that we have the following details:

    1. Email ID of the Test User

    2. Billing Account ID of the Test User (Note: Use 000000-000000-000000 format with A-F and 0-9 numbers and letters)

  2. Before proceeding with the test purchase, complete the below steps:

    • Add test user email under IAM with the required permissions

      1. Navigate to IAM in GCP Console 

      2. Make sure the <partnercompanyname>-public project is selected.

      3. Click on Grant Access

      4. Add the New principals (Provide the Email ID of the Test User)

      5. Click on Select a role  

      6. In the Select a role dropdown, type Commerce Producer Admin in Filter text and click on it

      7. Click on + Add Another Role

      8. In the Select a role dropdown, type Service Management Administrator in the Filter text and click on it

      9. Click on + Add Another Role

      10. In the Select a role dropdown, type Commerce Price Management Private Offers Admin in Filter text and click on it

      11. Click on Save.

  3. You need to configure the test billing account used for testing the purchase so that the charges will be discounted for this user.

    1. Navigate to GCP Producer Portal

    2. Make sure the <partnercompanyname>-public project is selected.

    3. Select Reports from left menu

    4. Click on Add a Test Billing Account and provide the billing account ID

    5. Click on Done

    6. Click on Save

    7. This will go for GCP approval and will take tentatively 24 hours.

  4. Once the test billing account is approved, now you can go ahead and use the above billing account for Public and Private offer Test Purchases.