phonepe_flutter 1.1.0
phonepe_flutter: ^1.1.0 copied to clipboard
Flutter helper to launch a PhonePe checkout flow, return via deep link, and expose a simple status for in-app payments with sandbox/production configs.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add phonepe_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
phonepe_flutter: ^1.1.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:phonepe_flutter/lib/src/checkout_webview.dart';
import 'package:phonepe_flutter/lib/src/phonepe_checkout.dart';
import 'package:phonepe_flutter/lib/src/phonepe_config.dart';
import 'package:phonepe_flutter/lib/src/phonepe_env.dart';
import 'package:phonepe_flutter/lib/src/phonepe_models.dart';
import 'package:phonepe_flutter/lib/widgets/custom_app_bar.dart';
import 'package:phonepe_flutter/phone_pe.dart';