GithubHelp home page GithubHelp logo

tamtamchik / apple-iap-tools Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 2.0 1012 KB

Types and verifyReceipt function for Apple in-app purchases and server notifications.

License: MIT License

TypeScript 99.69% Shell 0.31%
apple in-app-purchase receipt-validator typescript

apple-iap-tools's Introduction

apple-iap-tools's People

Contributors

dependabot[bot] avatar snyk-bot avatar tamtamchik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

btjones codehz

apple-iap-tools's Issues

404 for casing of HTML file names in the docs

Thanks for helping us save some time with this package! <3 @tamtamchik

Just so you know, link in the side bar of https://tamtamchika.net/apple-iap-tools/modules.html for ServerNotificationResponseBody goes to https://tamtamchika.net/apple-iap-tools/interfaces/ServerNotificationResponseBody.html which is a 404.
The correct one seems to be https://tamtamchika.net/apple-iap-tools/interfaces/servernotificationresponsebody.html which is entirely-lowercase version of that.

It's the same situation for most of them.

Thanks!

Fails to import in Node

Attempting to use this module from Node.js doesn't seem to work, as extensionless imports aren't supported.

internal/process/esm_loader.js:74
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/colin/ait-tr/node_modules/@tamtamchik/apple-iap-tools/dist/ExpirationIntent' imported from /home/colin/ait-tr/node_modules/@tamtamchik/apple-iap-tools/dist/index.js
    at finalizeResolution (internal/modules/esm/resolve.js:276:11)
    at moduleResolve (internal/modules/esm/resolve.js:699:10)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11)
    at Loader.resolve (internal/modules/esm/loader.js:86:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:56:40)
    at link (internal/modules/esm/module_job.js:55:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

From what I can tell, the official solution to this is to use .js extensions in imports (see microsoft/TypeScript#16577)

SNS 2?

Thank you for this! I assume this is based on SNS 1 right?

Any plan for 2nd version?

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.