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

initCustomerSheet returns null & No confirm button shows up when Card already saved #1459

Closed
dharmendrasinh-concetto opened this issue Oct 26, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@dharmendrasinh-concetto
Copy link

dharmendrasinh-concetto commented Oct 26, 2023

initCustomerSheet returns null

  1. When opening initCustomerSheet, it returns null.
  2. On click of Close icon, it throws error : 'Null' is not a subtype of 'String' in type cast (stacktrace is provided below.)
  3. When one card is saved, then next time presentCustomerSheet opens up with Add New & Saved Card option, here Saved Card is ticked by default for payment choice, but it's not showing Confirm button. Only way to get that button is remove card and add new again.

Smartphone / tablet

  • Device: Android
  • OS: Android 10
  • Package version: 9.5.0+1
  • Flutter version : 3.13.7

Additional context
$$_PaymentSheetPaymentOptionFromJson (package:stripe_platform_interface/src/models/payment_sheet.g.dart:406:28)
new _$_PaymentSheetPaymentOption.fromJson (package:stripe_platform_interface/src/models/payment_sheet.freezed.dart:4570:7)
_$PaymentSheetPaymentOptionFromJson (package:stripe_platform_interface/src/models/payment_sheet.freezed.dart:4465:37)
new PaymentSheetPaymentOption.fromJson (package:stripe_platform_interface/src/models/payment_sheet.dart:464:7)
_$$_CustomerSheetResultFromJson (package:stripe_platform_interface/src/models/customer_sheet.g.dart:103:39)
new _$_CustomerSheetResult.fromJson (package:stripe_platform_interface/src/models/customer_sheet.freezed.dart:968:7)
_$CustomerSheetResultFromJson (package:stripe_platform_interface/src/models/customer_sheet.freezed.dart:799:31)
new CustomerSheetResult.fromJson (package:stripe_platform_interface/src/models/customer_sheet.dart:95:7)
MethodChannelStripe._parseCustomerSheetResult (package:stripe_platform_interface/src/method_channel_stripe.dart:355:36)
MethodChannelStripe.presentCustomerSheet (package:stripe_platform_interface/src/method_channel_stripe.dart:277:12)

@remonh87 remonh87 added bug Something isn't working and removed needs triage Needs triage labels Oct 26, 2023
@remonh87 remonh87 self-assigned this Oct 26, 2023
@remonh87
Copy link
Member

thanks I created a fix for this. PR will follow this weekend (want to fix other issues as well).

@dharmendrasinh-concetto
Copy link
Author

@remonh87 Thank you so much. Can I check that PR? So that I can confirm it's working for me !!

remonh87 pushed a commit that referenced this issue Oct 29, 2023
@remonh87
Copy link
Member

the fixes are on branch bugfixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants