We are trying to build an action that takes gifts. The amount of the gift is provided by the user (in a slot).
To achieve this, we are creating in-app products with the Google Play API through the following resource : https://developers.google.com/android-publisher/api-ref/rest/v3/inappproducts/insert
After creating the product, we are creating the purchase : https://developers.google.com/assistant/transactions/digital/dev-guide-digital-consumables#create_purchase_from_user_selection
However, I get the following error from the Google Assistant : "Sorry, an error occurred, please try again later." (I translated it from French). There is no logs errors reported in Log Explorer.
If I edit the webhook code to use an in-app product created or edited from the Play Console UI, the payment is working as intended.
The prices inserted from the API are the same as the one generated by the Play Console UI.
Do you know why this is not working ? Are products inserted by the API not usable by actions ?
Thanks !