Giter VIP home page Giter VIP logo

Comments (10)

justinpage avatar justinpage commented on August 24, 2024 1

@ronkorving I believe this can be closed due to the merge of #24

from node-iap.

sambauwens avatar sambauwens commented on August 24, 2024

Also I noticed another iap project using this in_app property.

from node-iap.

ronkorving avatar ronkorving commented on August 24, 2024

Wow, that's really weird. But I appreciate the PR! :)

from node-iap.

nvcken avatar nvcken commented on August 24, 2024

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.

nvcken avatar nvcken commented on August 24, 2024

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.

ronkorving avatar ronkorving commented on August 24, 2024

That PR is still open, with unaddressed comments. An update to it would be most appreciated.

from node-iap.

nvcken avatar nvcken commented on August 24, 2024

@ronkorving
sambauwens@322386b

from node-iap.

silenceper avatar silenceper commented on August 24, 2024

why the response is different?

from node-iap.

justinpage avatar justinpage commented on August 24, 2024

@nvcken @silenceper see my answer here:
#11 (comment)

Also, check out #24 as this should resolve some of our issues --hopefully.

from node-iap.

ronkorving avatar ronkorving commented on August 24, 2024

@sambauwens Please reopen if there's still an issue.

from node-iap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.