Closed parth-devloper121 closed 2 months ago
Same issue here
same issue here
razorpay_flutter:
git:
url: https://github.com/wrteam-anish/razorpay-flutter.git
try this
Hey folks, the issue is not with the razorpay-checkout SDK but with mavenCentral. The razorpay-flutter package does not use jcenter. You can verify this here. Also attaching the link to the site which states the outage in OSSRH (mavenCentral) which is why we are seeing this issue. The issue is also different for each because using a specific version has been working for some folks, while it hasn’t for others. You can try to use https://github.com/razorpay/razorpay-flutter/issues/400#issuecomment-2285365867 (Thank you @niladri-raychaudhuri for explaining the steps) fix temporarily to see if that would resolve it for you, while we look into resolving this from our end.
Manually change build.gradle
of razorpay_flutter
Change this api 'com.razorpay:checkout:1.6.41'
instand of api 'com.razorpay:checkout:1.6.+'
PaymentSuccessResponse data not found
static void handlePaymentSuccess(PaymentSuccessResponse response) async { // Utility.ShowToastpositive("success ${response.data}"); // logger.d(response.data); if (response.data != null) { if (response.data!["razorpay_payment_id"] != null) { await captureOnlinePayment( payId: response.data!["razorpay_payment_id"]); razorpay.clear(); } } else { razorpay.clear(); } }
razorpay_flutter: git: url: https://github.com/wrteam-anish/razorpay-flutter.git
try this
Hey folks, seems like the issue on mavenCentral is resolved. You can check the latest status here. Please try to run ./gradlew --refresh-dependencies or ./gradle --refresh-dependencies or run Sync project with Gradle files in Android studio when the android project is opened.
Manually change
build.gradle
ofrazorpay_flutter
Change thisapi 'com.razorpay:checkout:1.6.41'
instand ofapi 'com.razorpay:checkout:1.6.+'
it works for me thanks
Hey folks,
I think Maven Central has resolved this issue, now just run the flutter clean and flutter pub get commands in your Terminal and it will work again.
If you're still facing the same issue, try downgrading your Flutter version to 3.22.2. It worked for me.
What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not resolve com.razorpay:checkout:1.6.+. Required by: project :app > project :razorpay_flutter Failed to list versions for com.razorpay:checkout. Unable to load Maven meta-data from https://jcenter.bintray.com/com/razorpay/checkout/maven-metadata.xml. Could not HEAD 'https://jcenter.bintray.com/com/razorpay/checkout/maven-metadata.xml'. Received status code 500 from server: Internal Server Error
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org/ BUILD FAILED in 15s Error: Gradle task assembleDebug failed with exit code 1
Please fix this asap.