Giter Site home page Giter Site logo

andreishpakovskiy / subscription_checker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 130 KB

Flutter plugin for client-side in-app purchase verification on Android and iOS

License: Other

Kotlin 24.52% Swift 39.04% Objective-C 0.14% Dart 28.26% Ruby 8.04%

subscription_checker's Introduction

Subscription Checker

This is a simple Flutter plugin to check the status of any Google Play or AppStore subscription on client side.

WARNING: this plugin is just a proof of concept! Neither Android nor iOS docs recommend to use client-side purchase verification for different reasons. Don't use this package in your real world projects.

Example

To initialize SubscriptionChecker on iOS you need to provide app-specific shared secret.

final SubscriptionChecker subscriptionChecker = SubscriptionChecker()
    ..setSharedSecret("12ab90709c0a9798d9799e923545bb42");
    
final result = await subscriptionChecker.checkSubscription(subscriptionId: ["subscription_id"]);

Subscription status can be active, expired or notFound in case, if subscription does not appear in purchase history.

Note, that appStoreReceiptURL can be nil in case, when user does not have any active subscriptions, so SubscriptionChecker will be left uninitialized and checkSubscription will fail with exception.

subscription_checker's People

Contributors

ashpakouski avatar

Watchers

 avatar

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.