huawei_iap 6.4.0+301 icon indicating copy to clipboard operation
huawei_iap: ^6.4.0+301 copied to clipboard

PlatformAndroid

HUAWEI IAP Kit plugin for Flutter. Huawei's In-App Purchases (IAP) service allows you to offer in-app purchases and facilitates in-app payment.

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

25
likes
120
pub points
79%
popularity

Publisher

verified publisher icondeveloper.huawei.com

HUAWEI IAP Kit plugin for Flutter. Huawei's In-App Purchases (IAP) service allows you to offer in-app purchases and facilitates in-app payment.

Homepage
Repository (GitHub)

Documentation

API reference

License

Icon for licenses.Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on huawei_iap