Cashfree Flutter SDK Sample

GitHub Discord GitHub last commit (branch) GitHub release (with filter) Maven Central GitHub forks Build GitHub Repo stars

Sample Banner Image

Description

Sample integration project for Cashfree Payment Gateway's Flutter SDK, facilitating seamless and secure payment processing within your Flutter application.

Documentation

The Cashfree Flutter SDK allows you to integrate Cashfree Payment Gateway into your application and start collecting payments from your customers. It has been designed to minimise the complexity of handling and integrating payments in your Flutter project.

Getting Started

Please replace the values for orderId, token (Payment Session ID) and environment values in the example flutter project inside the repo and run.


  String orderId =  "ORDER_ID"; // replace with actual value
  String paymentSessionId =  "PAYMENT_SESSION_ID" // replace with actual value
  CFEnvironment environment = CFEnvironment.PRODUCTION;  // replace with actual value

iOS: Swift Package Manager and CocoaPods

The plugin supports both of Flutter's iOS dependency managers, with no extra setup for either:

  • Swift Package Manager (Flutter's default from 3.44): ios/flutter_cashfree_pg_sdk/Package.swift is picked up automatically and pulls the native SDK from cashfree/core-ios-sdk.
  • CocoaPods: the podspec is still shipped and pulls CashfreePG as before.

Both resolve the same native SDK version. Minimum iOS version is 13.0 (required by the native Cashfree iOS SDK).

| Please refer our official flutter documentation here.

Getting help

If you have questions, concerns, bug reports, etc, you can reach out to us using one of the following

  1. File an issue in this repository's Issue Tracker.
  2. Send a message in our discord channel. Join our discord server to get connected instantly.
  3. Send an email to care@cashfree.com

Getting involved

For general instructions on how to contribute please refer to CONTRIBUTING.


Open source licensing and other misc info

  1. LICENSE
  2. CODE OF CONDUCT