Mobile SDKs
Integration errors due to outdated SDK versions.
Integration errors due to outdated SDK versions.
- Always use the latest SDK versions. Check the Changelog for updates.
NOT_AVAILABLE isn't a trusted source, app should be installed from play store or another whitelisted app
NOT_AVAILABLE isn't a trusted source, app should be installed from play store or another whitelisted app
NDK version mismatch error with flutter_cashfree_pg_sdk
NDK version mismatch error with flutter_cashfree_pg_sdk
To troubleshoot this issue, follow these steps:
- Update the ndk.dir path in your local.properties file:
ndk.dir=/path/to/ndk/<required_version> - Alternatively, open Android Studio > SDK Manager > SDK Tools, and install the required NDK version.
Gradle build error: Could not resolve com.cashfree.pg:api...
Gradle build error: Could not resolve com.cashfree.pg:api...
To troubleshoot this issue, follow these steps:
- Add the following repositories inside android/build.gradle under allprojects > repositories:
google()
mavenCentral()
maven { url "https://jitpack.io" }
How to initialise payment using cashfree_pg_sdk
How to initialise payment using cashfree_pg_sdk
- Use the method:
CashfreePGSDK.doPayment(orderId, setEnvironment, setPaymentSessionId); - Ensure the following:
orderIdandpaymentSessionIdare securely generated from your backend.setEnvironmentis eitherSANDBOXorPRODUCTION.- You specify the platform (for example, UPI, card, or netbanking).
Why don't UPI apps launch in test mode?
Why don't UPI apps launch in test mode?
To test UPI behaviour, follow these steps:
- Use the Cashfree UPI simulator with sandbox credentials.
- For end-to-end testing, use production mode with small payment amounts.
Is UPI Intent supported on desktop websites?
Is UPI Intent supported on desktop websites?
Why do I get a payment_session_id_invalid error in the React Native SDK?
Why do I get a payment_session_id_invalid error in the React Native SDK?
payment_session_id_invalid error means the payment session ID is missing or does not exist. A common cause is an environment mismatch: the order was created in one environment and the SDK session points to another.To resolve this error:- Create the order in the same environment that the app uses.
- Initialise
CFSessionwithCFEnvironment.PRODUCTIONfor production orders, orCFEnvironment.SANDBOXfor sandbox orders.
SDK shows strange or inconsistent errors
SDK shows strange or inconsistent errors
- Run:
flutter clean
flutter pub get - If issues persist, delete the following directories:
.gradle/
.idea/