Comments (10)
@ronkorving I believe this can be closed due to the merge of #24
from node-iap.
Also I noticed another iap project using this in_app property.
from node-iap.
Wow, that's really weird. But I appreciate the PR! :)
from node-iap.
I get response like this
{ receipt:
{ receipt_type: 'ProductionSandbox',
adam_id: 0,
app_item_id: 0,
bundle_id: 'com.abc.test',
application_version: '1.0',
download_id: 0,
version_external_identifier: 0,
request_date: '2015-06-09 10:22:59 Etc/GMT',
request_date_ms: '1433845379569',
request_date_pst: '2015-06-09 03:22:59 America/Los_Angeles',
original_purchase_date: '2013-08-01 07:00:00 Etc/GMT',
original_purchase_date_ms: '1375340400000',
original_purchase_date_pst: '2013-08-01 00:00:00 America/Los_Angeles',
original_application_version: '1.0',
in_app: [ [Object] ] },
transactionId: undefined,
productId: undefined,
platform: 'apple' }
so weird, transactionId: undefined, productId: undefined
and have no status field like apple describe
https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html#//apple_ref/doc/uid/TP40010573-CH104-SW1
What I miss?
from node-iap.
because the weird ( not like as document) format response
So this below code of module will work incorrect
lib/apple/index.js
/* jshint camelcase:false */
if (payment.hasOwnProperty('productId') && payment.productId !== receipt.product_id) {
return cb(new Error('Wrong product ID: ' + payment.productId + ' (expected: ' + receipt.product_id + ')'));
}
from node-iap.
That PR is still open, with unaddressed comments. An update to it would be most appreciated.
from node-iap.
@ronkorving
sambauwens@322386b
from node-iap.
why the response is different?
from node-iap.
@nvcken @silenceper see my answer here:
#11 (comment)
Also, check out #24 as this should resolve some of our issues --hopefully.
from node-iap.
@sambauwens Please reopen if there's still an issue.
from node-iap.
Related Issues (20)
- Code standards for node-iap HOT 6
- Update Github description to match package.json HOT 1
- [Apple] return receipt for expired subscriptions HOT 9
- Bump and release new version HOT 2
- [Google] - use oderId instead of the token as transationId HOT 6
- add `cancelSubscription` HOT 1
- Having a trouble with google verification HOT 9
- [Apple] Sandbox testing no longer works HOT 6
- [Apple] purchaseData should be purchaseDate HOT 3
- [Google] How to get "Google API Service Account JSON key file linked to your Google Play account for authentication" HOT 2
- Use version 3 of the Google Play Developer API HOT 4
- npm - SIgnature Verification Bypass HOT 2
- Create verifyPayment function that returns a Promise, instead of using callbacks HOT 2
- Update minimist dependency
- How to get google key object file? HOT 1
- Checking if auto renewable subscription is valid.. HOT 1
- NPM package isn't updated to latest to support promises for verifyPayment HOT 1
- Update minimist
- Not sure sorting by `transaction_id` works with family sharing HOT 5
- App build in AdHoc Prov. Profile, with Distribution Prod Cert., getting receipt: "sandbox"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-iap.