Skip to content

Latest commit

 

History

History

flutter-hms-iap

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Huawei IAP Flutter Plugin

pub.dev version


Huawei's In-App Purchases (IAP) service allows you to offer in-app purchases and facilitates in-app payment. Users can purchase a variety of virtual products, including one-time virtual products and subscriptions, directly within your app.

Huawei IAP provides the following core capabilities you need to quickly build apps with which your users can buy, consume and subscribe services you provide:

  • isEnvReady: Returns a response which indicates user's environment status.
  • isSandboxActivated: Returns a response which indicates user's account capabilities of sandbox testing.
  • obtainProductInfo: Returns a list of product information.
  • startIapActivity: Starts an activity to manage and edit subscriptions.
  • createPurchaseIntent: Starts an activity to buy the desired product or subscribe a product.
  • consumeOwnedPurchase: Consumes the desired purchased product.
  • obtainOwnedPurchases: Returns a list of products that purchased by user.
  • obtainOwnedPurchaseRecord: Returns a list of products that purchased and consumed by user.
  • enableLogger: This method enables the HMSLogger capability which is used for sending usage analytics of IAP SDK's methods to improve the service quality.
  • disableLogger: This method disables the HMSLogger capability which is used for sending usage analytics of IAP SDK's methods to improve the service quality.

This plugin enables communication between HUAWEI IAP Kit SDK and Flutter platform. It exposes all functionality provided by HUAWEI IAP Kit SDK.

Learn More

Installation

Please see pub.dev and AppGallery Connect Configuration.

Documentation

Questions or Issues

If you have questions about how to use HMS samples, try the following options:

  • Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
  • Github is the official repository for these plugins, You can open an issue or submit your ideas.
  • Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.
  • Huawei Developer Docs is place to official documentation for all HMS Core Kits, you can find detailed documentations in there.

If you run into a bug in our samples, please submit an issue to the GitHub repository.

License

Huawei IAP Flutter Plugin is licensed under Apache 2.0 license.