purchasely_flutter

Creator: coderz1093

Last updated:

Add to Cart

Description:

purchasely flutter

Purchasely #
Purchasely is a solution to ease the integration and boost your In-App Purchase & Subscriptions on the App Store, Google Play Store and Huawei App Gallery.
Installation #
dependencies:
purchasely_flutter: ^1.1.0
copied to clipboard
Usage #
import 'package:purchasely_flutter/purchasely_flutter.dart';

// ...

bool configured = await Purchasely.startWithApiKey(
'YOUR_API_KEY',
['Google'],
null, // your user id
PLYLogLevel.debug,
PLYRunningMode.full
);

var result = await Purchasely.presentProductWithIdentifier('YOU_PRODUCT_ID');
print('Result : $result');
if (result.result == PLYPurchaseResult.cancelled) {
print("User cancelled purchased");
} else {
print('User purchased: ${result.plan.name}');
}
copied to clipboard
🏁 Documentation #
A complete documentation is available on our website https://docs.purchasely.com

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.