How to perform the integration tests of the service on my shop?
Our connection interface between your PrestaShop and the "Buy on Google" service allows you to perform tests to verify the proper functioning of the interactions between the Google API and your back office.
You can do the tests before or after publishing your products ("your storefront") on Google. However, we advise you to do them before, in order to be sure of the functioning before you start receiving orders.
First of all, click on the "Go to dashboard" button in the "Buy on Google" tab of the module:
Log in with the credentials used when creating your account (see this FAQ), if you're not already logged in.
Click on the "Integration tests" tab in the top menu:
The first step is to create on your shop the two "test products" defined by Google for the integration tests. Indeed, the tests can only be carried out on the basis of these two products made available by Google.
Of course these products will not be enabled so that they do not appear on your site. Do not modify them. You will be able to delete them at the end of the tests.
These products are:
- a "Google Chromecast" with reference: H2G2-42 and GTIN code: 0811571013579
- a "Nexus 9" with reference: 99HZF001-00 and GTIN code: 082179304268
Click on the "Create test products" button:
If the creation is successfull, a table is displayed summarizing the most important information about these test products.
Click on "Close".
Go to the back office of your shop to check the presence of these test products in your catalog:
Return to the test interface and click on "Next step":
The second step is to ask Google, via its API, to simulate a test order of these products and to check that this order is well synchronized on your shop.
The order is placed by a "test" customer (Pam Beesly) and contains 2 "Google Chromecast" and 1 "Nexus 9".
Click on the "Create test order" button:
If the operation is successful, a table is displayed summarizing the details of the test order:
Click on "Close".
Go to your back office to check that it has been well detected and synchronized on your shop. It should have the "Google order pending shipment" status:
If it's ok, return to the test interface and click on "Next step":
We're now going to verify the synchronization of status changes.
BEFORE clicking on the button of the step 3, in the back office of your shop, display the detail of the test order and click on the "Carriers" tab:
By default, it's the carrier indicated as "Carrier for "Buy on Google" orders" that is used for this test order. Check that this is the case:
When processing real Google orders, you must provide a valid tracking number so that your customers can track their packages. Click on "Edit" on the line matching with the carrier for this test order and indicate an example of tracking number (number at random, it doesn't matter), and click on "Update":
Now change the order test status to "shipped":
Return to the test interface and click on the "Set order as shipped" button to indicate to Google that the order has been shipped:
If the test is successful you will see a table with the summary of the order shipped. You can check that the Google carrier indicated matches with your configuration in the module:
You can also check that the tracking number is the one you entered previously:
Then click on "Close" and on "Next Step":
BEFORE clicking on the button of the step 4, in the back office of your shop, change the order test status to "delivered":
Return to the test interface and click on the "Set order as delivered" button to indicate to Google that the order has been delivered:
If the test is successful you will see a summary table:
Click on "Close" and then on "Close the test":
The tests are now complete! The automatic order synchronization has just been activated.
If you haven't yet published your storefront on Google, do it through your online Google Merchant Center account. Google orders will automatically arrive on your shop. You'll just need to manage them in the same way you do other orders on your site. Order status changes are automatically synchronized with Google.
To visit the general FAQ for configuring the "Merchant Center with Actions" service, click here.
Other FAQs in this category
- What are the steps to follow to start receiving orders from "Buy on Google" in PrestaShop?
- How to manage carriers for the orders placed via "Buy on Google"?
- Can I create a carrier to be used only for customers who order through "Buy on Google"?
- How to specify the percentage of the stock of my products reserved for sale on Google?
- How to configure the eligibility of my products for Google funded promotions?
- How to automatically update the status of an order on Google?