Please be mindful. This page is almost very similar but different than the last page. Differences in service account, code, package.json.
These codes will allow you to acknowledge and verify purchases or subscriptions. There is 1 call for each type of transaction.
verifyiOSPurchase should be the name you use here
the name used here should match the name used in Step 3 above
This allows any device with your endpoint URL the ability to verify purchases made via your app
Select the function you want to make public. (the function you just created)
Click the Permissions tab.
Click Add Principle
In the Add members field, type allUsers
Select the Cloud Function Invoker role from the Select a role drop-down menu.
Click Add.
Step 1 to getting your code to live in Firebase and be ready for you to use is to prepare your environment. Watch this short video and follow the steps to prepare your Google Cloud environment to accept and host the required code
These should be created and deployed like the previous 3 functions
serverLog should be the name you use here
the name used here should match the name used in Step 3 above
This allows any device with your endpoint URL the ability to verify purchases made via your app
Select the function you want to make public. (the function you just created)
Click the Permissions tab.
Click Add Principle
In the Add members field, type allUsers
Select the Cloud Function Invoker role from the Select a role drop-down menu.
Click Add.
These codes will allow you to acknowledge and verify purchases or subscriptions. There is 1 call for each type of transaction.
androidSubscriptionHandler should be the name you use here
the name used here should match the name used in Step 3 above
This allows any device with your endpoint URL the ability to verify purchases made via your app
Select the function you want to make public. (the function you just created)
Click the Permissions tab.
Click Add Principle
In the Add members field, type allUsers
Select the Cloud Function Invoker role from the Select a role drop-down menu.
Click Add.
Please be mindful. This page is almost identical to the previous with exceptions in the function name and code.
These codes will allow you to acknowledge and verify purchases or subscriptions. There is 1 call for each type of transaction.
androidPurchaseHandler should be the name you use here
the name used here should match the name used in Step 3 above
This allows any device with your endpoint URL the ability to verify purchases made via your app
Select the function you want to make public. (the function you just created)
Click the Permissions tab.
Click Add Principle
In the Add members field, type allUsers
Select the Cloud Function Invoker role from the Select a role drop-down menu.
Click Add.
Go to
Go to