Cashfree Flutter SDK Sample

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.swiftis picked up automatically and pulls the native SDK from cashfree/core-ios-sdk. - CocoaPods: the podspec is still shipped and pulls
CashfreePGas 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
- File an issue in this repository's Issue Tracker.
- Send a message in our discord channel. Join our discord server to get connected instantly.
- 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
Libraries
- api/cfcard/cfcardlistener
- api/cfcard/cfcardvalidator
- api/cfcard/cfcardwidget
- api/cferrorresponse/cferrorresponse
- api/cfnetwork/CFNetworkManager
- api/cfpayment/cfcard
- api/cfpayment/cfcardpayment
- api/cfpayment/cfdropcheckoutpayment
- api/cfpayment/cfnetbanking
- api/cfpayment/cfnetbankingpayment
- api/cfpayment/cfpayment
- api/cfpayment/cfsubscriptioncheckoutpayment
- api/cfpayment/cfupi
- api/cfpayment/cfupipayment
- api/cfpayment/cfwebcheckoutpayment
- api/cfpayment/subs/cfsubscard
- api/cfpayment/subs/cfsubscardpayment
- api/cfpayment/subs/cfsubsnetbanking
- api/cfpayment/subs/cfsubsnetbankingpayment
- api/cfpayment/subs/cfsubsupi
- api/cfpayment/subs/cfsubsupipayment
- api/cfpaymentcomponents/cfpaymentcomponent
- api/cfpaymentgateway/cfpaymentgatewayservice
- api/cfsession/cfsession
- api/cfsession/cfsubssession
- api/cftheme/cftheme
- api/cfupi/cfupiutils
- flutter_cashfree_pg_sdk_web
- Predefining a structure to send back response in json string onSuccess { "status": "success", "data": { "order_id": "" } }
- utils/cfenums
- utils/cfexceptionconstants
- utils/cfexceptions