cafebazaar_flutter 1.0.0 copy "cafebazaar_flutter: ^1.0.0" to clipboard
cafebazaar_flutter: ^1.0.0 copied to clipboard

outdated

CafeBazaar In-App Billing package for flutter upgrade to poolakey this package is just for android applications

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:cafebazaar_flutter/cafebazaar_flutter.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  InAppPurchase inApp;
  CafebazaarFlutter _bazaar;
  @override
  void initState() {
    super.initState();
     _bazaar = CafebazaarFlutter.instance;
     inApp = _bazaar.inAppPurchase("Public Token");
  }



  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Column(
            children: [
              ElevatedButton(onPressed: () {
                inApp.purchase("m2");
              },child: Text("Pay")),
            ],
          )
        ),
      ),
    );
  }
}
50
likes
0
points
44
downloads

Publisher

verified publisherflutterfarsi.ir

Weekly Downloads

CafeBazaar In-App Billing package for flutter upgrade to poolakey this package is just for android applications

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on cafebazaar_flutter