more dummy controller, just for iap data
This commit is contained in:
@@ -2,14 +2,6 @@ var iap = require('in-app-purchase');
|
||||
var async = require('async');
|
||||
var payments = require('./index');
|
||||
|
||||
/*
|
||||
For google iap, you need to name your public key file as:
|
||||
iap-sanbox or iap-live
|
||||
*/
|
||||
iap.config({
|
||||
googlePublicKeyPath: "/path/to/google/public/key/dir/"
|
||||
});
|
||||
|
||||
exports.androidVerify = function(req, res, next) {
|
||||
console.info(req.body);
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ router.post("/stripe/subscribe/edit", auth.auth, i18n.getUserLanguage, payments.
|
||||
//router.get("/stripe/subscribe", auth.authWithUrl, i18n.getUserLanguage, payments.stripeSubscribe); // checkout route is used (above) with ?plan= instead
|
||||
router.get("/stripe/subscribe/cancel", auth.authWithUrl, i18n.getUserLanguage, payments.stripeSubscribeCancel);
|
||||
|
||||
router.post("/iap/android/verify", auth.authWithUrl, i18n.getUserLanguage, payments.iapAndroidVerify);
|
||||
router.post("/iap/ios/verify", auth.authWithUrl, i18n.getUserLanguage, payments.iapIosVerify);
|
||||
router.post("/iap/android/verify", /*auth.authWithUrl, i18n.getUserLanguage, */payments.iapAndroidVerify);
|
||||
router.post("/iap/ios/verify", /*auth.authWithUrl, i18n.getUserLanguage, */ payments.iapIosVerify);
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user