Fix app purchase and in-app pay (bug 1010533)
Merge pull request #458 from kumar303/pay-fix

Fix app purchase and in-app pay (bug 1010533)