- 01 Mar 2024
- 6 Minutes to read
- Print
Configuration of Test Accounts for purchase
- Updated on 01 Mar 2024
- 6 Minutes to read
- Print
Below are the steps that you need to follow to test the purchase of the product:
To test the purchase of the product before making it live, we need to make sure that we have the following details:
Email ID of the Test User
Billing Account ID of the Test User (Note: Use 000000-000000-000000 format with A-F and 0-9 numbers and letters)
Before proceeding with the test purchase, complete the below steps:
Add test user email under IAM with the required permissions
Navigate to IAM in GCP Console
Make sure the <partnercompanyname>-public project is selected.
Click on Grant Access
Add the New principals (Provide the Email ID of the Test User)
Click on Select a role
In the Select a role dropdown, type Commerce Producer Admin in Filter text and click on it
Click on + Add Another Role
In the Select a role dropdown, type Service Management Administrator in the Filter text and click on it
Click on + Add Another Role
In the Select a role dropdown, type Commerce Price Management Private Offers Admin in Filter text and click on it
Click on Save.
You need to configure the test billing account used for testing the purchase so that the charges will be discounted for this user.
Navigate to GCP Producer Portal
Make sure the <partnercompanyname>-public project is selected.
Select Reports from left menu
Click on Add a Test Billing Account and provide the billing account ID
Click on Done
Click on Save
This will go for GCP approval and will take tentatively 24 hours.
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.