Skip to content
pubscout

phonepe_payment_sdk

3.0.2, released a year ago by phonepe.com

A Flutter plugin for PhonePe Payment SDK to integrate payments.

$ flutter pub add phonepe_payment_sdk

What it does

Allows Flutter apps to initialize the PhonePe payment gateway, start transactions, and handle payment results for Android and iOS platforms.

AI-written summary of version 3.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to integrate PhonePe payment gateway in your Flutter application
  • You are targeting Android and iOS platforms for PhonePe transactions

Skip it when

  • You are using payment gateways other than PhonePe
  • You need in-app purchases through App Store or Google Play billing

Strengths

  • Direct integration with PhonePe payment gateway
  • Supports both Android and iOS

Weaknesses

  • Limited documentation inside the README requiring external contact for deep integration
  • Platform-specific setup required for Android and iOS

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires adding dependency via pub, initializing the SDK with environment values, merchant ID, and flow ID, and configuring native project requirements as requested by PhonePe.

PhonePePaymentSdk.init(environmentValue, merchantId, flowId, enableLogs)
    .then((val) => {
          setState(() {
            result = 'PhonePe SDK Initialized - $val';
          })
        });

Alternatives

Packages that do the same job and could replace phonepe_payment_sdk.

  • flutter_stripe

    If you want to use Stripe as your payment gateway instead of PhonePe.

  • adyen_checkout

    If you want to use Adyen for payment processing instead of PhonePe.

  • pay

    If you want to integrate Google Pay and Apple Pay instead of a specific gateway like PhonePe.

Works with

Packages commonly used together with phonepe_payment_sdk: ones it builds on, ones built on it, and its own family.