You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't create multiple instance of iap object with different service account.
Example of my code:
functioniapInit(clientEmail,privateKey,fastify){console.log("EVENT: Start IAP-Plugin initialization");fastify.iap_appq=require("in-app-purchase");consttestEnv=process.env.TEST==="true";constverboseEnv=process.env.VERBOSE==="true";fastify.iap_appq.config({/* Configurations for Apple */appleExcludeOldTransactions: process.env.APPLE_EXCLUDE_OLD_TRANSACTIONS,// if you want to exclude old transaction, set this to true. Default is false/* Configurations for Google Play */// googlePublicKeyPath: 'path/to/public/key/directory/', // this is the path to the directory containing iap-sandbox/iap-live files//googlePublicKeyStrSandBox: GOOGLE_API_KEY, // this is the google iap-sandbox public key string//googlePublicKeyStrLive: googleKey, // this is the google iap-live public key stringgoogleServiceAccount: {clientEmail: clientEmail,privateKey: privateKey,},/* Configurations all platforms */test: false,// For Apple and Google Play to force Sandbox validation onlyverbose: true,// Output debug logs to stdout stream});fastify.iap_appq.setup();console.log("EVENT: IAP-Plugin initialized");returnfastify;}
After initialization all objects links to one service account, that was initialized first.
The text was updated successfully, but these errors were encountered:
Can't create multiple instance of iap object with different service account.
Example of my code:
After initialization all objects links to one service account, that was initialized first.
The text was updated successfully, but these errors were encountered: