From c95b0fb7d7971baae04fa427705c30cdff548d45 Mon Sep 17 00:00:00 2001 From: voltrue2 Date: Mon, 11 Apr 2016 22:24:10 -0400 Subject: [PATCH] readme --- .gitignore | 1 + README.md | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c2658d7..bb66736 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules/ +issues/ diff --git a/README.md b/README.md index db23b76..9788c98 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,19 @@ A Node.js module for In-App-Purchase validation for iOS, Android, Amazon, and Windows. +### Debug Logging + +The module can optionally turn on verbose debug log. + +In order to enable the verbose logging, give the following to `.config()` **BEFORE** calling `.setup([callback])`: + +```javascript +var iap = require('in-app-purchase'); +iap.config({ + verbose: true +}); +``` + ### Methods #### .validate(service [constant], receipt [string or object], callback [function]) @@ -46,7 +59,7 @@ Related reads: Apple Developer Thread 8954 -Aplle Purchase +Apple Purchase #### .isValidated(response [object])