Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Functions did not deploy properly with Firebase Cloud functions #344

Open
desmeit opened this issue Jun 28, 2021 · 1 comment
Open

Comments

@desmeit
Copy link

desmeit commented Jun 28, 2021

I try to implement it to Firebase Cloud functions but I'm always getting this error message:

Error: Functions did not deploy properly.

My code is very simple and the error comes as soon as i implement in-app-purchase. with or without configs.

const functions = require("firebase-functions");

const iap = require("in-app-purchase");

exports.validateReceipt = functions.https.onRequest(async (req, res) => {
  await iap.setup();
  res.send("test");
});
@famictech2000
Copy link

Thy this:

// Init cloud functions
const functions = require('firebase-functions');

const admin = require('firebase-admin');
admin.initializeApp();

var IAPVerifier = require('in-app-purchase');

IAPVerifier.config({

// Configuration variables go here

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants