Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many arguments for 'constructor(update: SimulateReaderUpdate = ..., #422

Open
2 of 8 tasks
divyesh-savaliya opened this issue Jan 22, 2025 · 1 comment
Open
2 of 8 tasks

Comments

@divyesh-savaliya
Copy link

divyesh-savaliya commented Jan 22, 2025

Platform

  • Web
  • iOS
  • Android

Describe the bug
While creating build with latest version getting this error

node_modules/@capacitor-community/stripe-terminal/android/src/main/java/com/getcapacitor/community/stripe/terminal/StripeTerminal.kt:154:17 Too many arguments for 'constructor(update: SimulateReaderUpdate = ..., simulatedCard: SimulatedCard = ..., simulatedTipAmount: Long? = ...): SimulatorConfiguration'.

If I comment argument false in line number 154 in StripeTerminal.kt build works fine.

Expected behavior
The build should work fine

Usage Product
If you adopt this plugin, please let us know which product you are using.

Product Name:
Product URL :
Using Function:

  • Payment Sheet / Payment Flow
  • Apple Pay
  • Google Pay
  • Identity (@capacitor-community/stripe-identity)
  • Terminal(@capacitor-community/stripe-terminal)
@rdlabo
Copy link
Member

rdlabo commented Jan 22, 2025

Stripe Terminal SDK Android has undergone a disruptive change from 4.0.0 to 4.1.0.

- public final data class SimulatorConfiguration public constructor(update: com.stripe.stripeterminal.external.models.SimulateReaderUpdate = COMPILED_CODE, simulatedCard: com.stripe.stripeterminal.external.models.SimulatedCard = COMPILED_CODE, simulatedTipAmount: kotlin.Long? = COMPILED_CODE) {

+ public final data class SimulatorConfiguration public constructor(update: com.stripe.stripeterminal.external.models.SimulateReaderUpdate = COMPILED_CODE, simulatedCard: com.stripe.stripeterminal.external.models.SimulatedCard = COMPILED_CODE, simulatedTipAmount: kotlin.Long? = COMPILED_CODE, offlineEnabled: kotlin.Boolean = COMPILED_CODE) {

https://zenn.dev/rdlabo/articles/7506d62d50609d#stripe-terminal-sdk

Bringing the implement SDK version up to date should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants