purchasely_google 6.0.0-rc.1 copy "purchasely_google: ^6.0.0-rc.1" to clipboard
purchasely_google: ^6.0.0-rc.1 copied to clipboard

Purchasely Google Play Billing dependency for Android

[Purchasely]

Purchasely Google Play extension #

Android Google Play Billing extension for the Purchasely Flutter SDK.

Installation #

Use the exact same version for every Purchasely Flutter package:

dependencies:
  purchasely_flutter: 6.0.0-rc.1
  purchasely_google: 6.0.0-rc.1

This package pulls io.purchasely:google-play:6.0.0-rc.1 on Android, published on Maven Central, so it resolves directly from the public repository.

Usage #

Initialize the SDK with the v6 builder and include the Google store:

import 'package:purchasely_flutter/purchasely_flutter.dart';

final configured = await PurchaselyBuilder.apiKey('<YOUR_API_KEY>')
    .runningMode(RunningMode.full)
    .stores([PLYStore.google])
    .start();

Display presentations with PresentationBuilder:

final outcome = await PresentationBuilder.placement('<YOUR_PLACEMENT_ID>')
    .build()
    .display(const Transition.fullScreen());

if (outcome.purchaseResult == PurchaseResult.purchased) {
  print('User purchased ${outcome.plan}');
}

See the repository MIGRATION-v6.md and sdk_public_doc.md for the complete v6 API mapping.

0
likes
0
points
2.71k
downloads

Publisher

unverified uploader

Weekly Downloads

Purchasely Google Play Billing dependency for Android

Homepage

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on purchasely_google

Packages that implement purchasely_google