question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Cannot find a parameter with this name: returnUrl

See original GitHub issue

Describe the bug When building on Android (react-native run-android), it fails with the error below:

e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (69, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (85, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (108, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (121, 11): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (136, 7): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (187, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (204, 7): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (217, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (235, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (250, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (266, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (282, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (298, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (335, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (351, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (380, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt: (409, 9): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt: (309, 16): None of the following functions can be called with the arguments supplied:
public final fun confirmPayment(activity: ComponentActivity, confirmPaymentIntentParams: ConfirmPaymentIntentParams, stripeAccountId: String? = ...): Unit defined in com.stripe.android.Stripe
public final fun confirmPayment(fragment: Fragment, confirmPaymentIntentParams: ConfirmPaymentIntentParams, stripeAccountId: String? = ...): Unit defined in com.stripe.android.Stripe
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt: (313, 13): Cannot find a parameter with this name: returnUrl
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt: (405, 14): None of the following functions can be called with the arguments supplied:
public final fun handleNextActionForPayment(activity: ComponentActivity, clientSecret: String, stripeAccountId: String? = ...): Unit defined in com.stripe.android.Stripe
public final fun handleNextActionForPayment(fragment: Fragment, clientSecret: String, stripeAccountId: String? = ...): Unit defined in com.stripe.android.Stripe
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt: (434, 14): None of the following functions can be called with the arguments supplied:
public final fun confirmPayment(activity: ComponentActivity, confirmPaymentIntentParams: ConfirmPaymentIntentParams, stripeAccountId: String? = ...): Unit defined in com.stripe.android.Stripe
public final fun confirmPayment(fragment: Fragment, confirmPaymentIntentParams: ConfirmPaymentIntentParams, stripeAccountId: String? = ...): Unit defined in com.stripe.android.Stripe
e: /Users/pablo/Projects/Yego/getyugo_react/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt: (480, 14): None of the following functions can be called with the arguments supplied:
public final fun confirmSetupIntent(activity: ComponentActivity, confirmSetupIntentParams: ConfirmSetupIntentParams, stripeAccountId: String? = ...): Unit defined in com.stripe.android.Stripe
public final fun confirmSetupIntent(fragment: Fragment, confirmSetupIntentParams: ConfirmSetupIntentParams, stripeAccountId: String? = ...): Unit defined in com.stripe.android.Stripe

FAILURE: Build failed with an exception.

To Reproduce Steps to reproduce the behavior:

  1. Install the library
  2. Run the build on Android
  3. See the error

Expected behavior Build and run on Android

Desktop (please complete the following information):

  • OS: macOS Big Sur
  • Version 11.4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pablogdcrcommented, Jul 20, 2021

Yes, exact same repo.

The issue is solved now, I upgraded my react-native version from 0.63.x to 0.64.x today, and now it builds fine. I suppose that something was wrong with the dependencies installed on this computer and that the problem has been solved by reinstalling everything correctly.

Thanks a lot for your help, let’s hope that the problem doesn’t come back and that no one else faces it!

0reactions
souhecommented, Jul 19, 2021

@pablogdcr are you testing exactly the same project (same repo) on both devices? Or maybe you created the project separately on the second computer? Node version should not matter

Can you please also check which version of com.stripe:stripe-android you have installed in your project? You can check that in Android studio in Project explorer under External Libraries group.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Cannot find a parameter with this name: items" for Basic ...
Apparently, we need to include another import that is not in the code example import androidx.compose.foundation.lazy.items.
Read more >
Error codes and messages - Adyen Docs
Solution: Add the missing parameter(s) amount or originalReference . Compare your request with a standard request for that endpoint, and ...
Read more >
The 'redirect_uri' parameter must be a Login redirect URI in ...
This error is returned because the value of ${redirect_uri} used in authorize request is not registered in the Open ID client in Okta,...
Read more >
How to Get URL Parameters with JavaScript - SitePoint
Learn how to parse query string parameters and get their values in JavaScript. Use the results for tracking referrals, autocomplete, ...
Read more >
Web inventory (deprecated) | Documentation
By configuring web inventory for the thing.name intent parameter passed by ... You can handle missing parameter values by defining multiple ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found