Android Purchases Code
Please be mindful. This page is almost identical to the previous with exceptions in the function name and code.
1. To get started, go to console.google.cloud.com/functions
2. Click Create Function

3. Give your new function a meaningful name

4. Save the trigger type

5. Copy the code below and click the blue "next" button

6. Clear the default and paste the copied code into the code
7. Update the package.json file
8. Set the name of the functions entry point

9. Click the plus icon to create a new file and name it "serviceAccount.json"


10. Copy and paste the content of this projects service account file from your computer into this newly created file.

11. Deploy the function

12. Set function invocation privacy permissions
Last updated
Was this helpful?