TPInAppReceipt | Reading and Validating In App Purchase Receipt Locally | Validation library

 by   tikhop Swift Version: 3.3.4 License: MIT

kandi X-RAY | TPInAppReceipt Summary

kandi X-RAY | TPInAppReceipt Summary

TPInAppReceipt is a Swift library typically used in Utilities, Validation applications. TPInAppReceipt has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

TPInAppReceipt is a lightweight, pure-Swift library for reading and validating Apple In App Purchase Receipt locally.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              TPInAppReceipt has a low active ecosystem.
              It has 540 star(s) with 80 fork(s). There are 16 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 4 open issues and 73 have been closed. On average issues are closed in 70 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of TPInAppReceipt is 3.3.4

            kandi-Quality Quality

              TPInAppReceipt has 0 bugs and 0 code smells.

            kandi-Security Security

              TPInAppReceipt has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              TPInAppReceipt code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              TPInAppReceipt is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              TPInAppReceipt releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of TPInAppReceipt
            Get all kandi verified functions for this library.

            TPInAppReceipt Key Features

            No Key Features are available at this moment for TPInAppReceipt.

            TPInAppReceipt Examples and Code Snippets

            No Code Snippets are available at this moment for TPInAppReceipt.

            Community Discussions

            QUESTION

            Swift How to handle Auto-renewable Subscription receipt and validation
            Asked 2021-May-04 at 18:23

            I am testing the auto renewable In-app purchases in swift, I found out that there are some strange problems with my code.

            I am testing these functions in sandbox environment

            1. User can purchase either one month, one year auto renewable subscription or permanent permission
            2. App should check if the subscription is still valid every time when user open app, if not, lock all premium functions
            3. User is able to restore the purchased plan, app should get the previous purchased type ie. one month, one year, or permanent.

            After long research on the tutorials, I am still confused about the validation

            1. I see that there are two ways to validate receipt, one is locally the other is on the server. But I don't have a server, does that mean I can only validate it locally
            2. Every time the auto-renewal subscription expires, the local receipt is not updated, so when I reopen the app I got a subscription expiration alert (The method I defined by my self for validation check ), when I click the restore button, the app restored successfully and receipt was updated
            3. After 6 times manually restored and refresh the receipt (the sandbox user can only renew 6 times), when I click the restore button, the part transaction == .purchased is till called, and my app unlocks premium function, however when I reopen my app, my app alerts that the subscription is expired, which is it should.

            My core problem is how can I check the validation of subscriptions with Apple every time when I open the app, I don't have a server, and I don't know why the receipt is not refreshing automatically

            Here are some parts of my code, I call checkUserSubsriptionStatus() when I open the app, I am using TPInAppReceipt Library

            ...

            ANSWER

            Answered 2021-May-04 at 11:03

            Get the receipt every time when the app launches by calling the method in AppDelegate.

            getAppReceipt(forTransaction: nil)

            Now, below is the required method:

            Source https://stackoverflow.com/questions/67380771

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install TPInAppReceipt

            Note: TPInAppReceipt in Objective-C project - If you want to use TPInAppReceipt in Objective-C project please follow this guide.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/tikhop/TPInAppReceipt.git

          • CLI

            gh repo clone tikhop/TPInAppReceipt

          • sshUrl

            git@github.com:tikhop/TPInAppReceipt.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Validation Libraries

            validator.js

            by validatorjs

            joi

            by sideway

            yup

            by jquense

            jquery-validation

            by jquery-validation

            validator

            by go-playground

            Try Top Libraries by tikhop

            ASN1Swift

            by tikhopSwift

            TPKit

            by tikhopSwift

            Cocoapods

            by tikhopRuby

            MesierTrackerPolicy

            by tikhopHTML

            rs-dapi-client

            by tikhopRust