j3k0 / cordova-plugin-purchase

In-App Purchase for Cordova on iOS, Android and Windows
https://purchase.cordova.fovea.cc
1.3k stars 537 forks source link

Get Receipt Data #81

Closed an-rahulpandey closed 6 years ago

an-rahulpandey commented 9 years ago

How to get the receipt data and how to pass it to my own validation method? I have

store.validator="http://myurl.php"
store.when("my stuff").approved(function(product) {
    product.verify();
});
store.when("my stuff").verified(function(product) {
    product.finish();
});

I am using PHP Validation Script. It calls my PHP script, but it needs receipt data in the url.

an-rahulpandey commented 9 years ago

Also the approved callback executing around 50 times continuously and in the console I am getting this repeatedly on the queue number is changed -

2015-01-08 17:33:57.633 InAppiPhone[548:46040] [store.js] INFO: ios -> transaction 10000001314136 purchased (176 in the queue for com.test.inapp)
2015-01-08 17:33:57.634 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'com.test.inapp approved'
2015-01-08 17:33:57.635 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'subscription approved'
2015-01-08 17:33:57.636 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'paid subscription approved'
2015-01-08 17:33:57.636 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'subscription approved'
2015-01-08 17:33:57.637 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'valid approved'
2015-01-08 17:33:57.638 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'approved'
2015-01-08 17:33:57.639 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'com.test.inapp updated'
2015-01-08 17:33:57.640 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'subscription updated'
2015-01-08 17:33:57.641 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'paid subscription updated'
2015-01-08 17:33:57.642 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'subscription updated'
2015-01-08 17:33:57.643 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'valid updated'
2015-01-08 17:33:57.644 InAppiPhone[548:46040] [store.js] DEBUG: store.queries !! 'updated'
2015-01-08 17:33:57.645 InAppiPhone[548:46040] [store.js] DEBUG: calling ready.callback
stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.