-
-
Notifications
You must be signed in to change notification settings - Fork 646
collectBankAccountToken failing due to missing parameter. #2180
Copy link
Copy link
Closed
Labels
needs triageNeeds triageNeeds triage
Milestone
Description
Describe the bug
Calling collectBankAccountToken fails due to missing params parameter when calling the Method Channel. An Invalid Parameters Exception is thrown.
To Reproduce
Steps to reproduce the behavior:
- Get a financial connections session client secret with a secret key.
- Pass that client secret to the
collectBankAccountTokenmethod as a parameter. Passing theparamsparameter is optional, but the failures occurs whether it's present or not. - Observe a failure with exception
PlatformExceptionwith the following stack trace:
#0 JSONMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:168:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:370:18)
<asynchronous suspension>
#2 MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:570:43)
<asynchronous suspension>
#3 MethodChannelStripe.collectBankAccountToken (package:stripe_platform_interface/src/method_channel_stripe.dart:559:20)
<asynchronous suspension>
...
Expected behavior
The method is called correctly and the modal sheet that allows user to connect a bank is show.
Smartphone / tablet
- Device: iPhone 13 Pro
- OS: iOS 18
- Package version: 11.5.0
- Flutter version 3.32.6 (stable)
Additional context
After forking and adding the missing parameter, the method gets called correctly, but the userInterfaceStyle: UserInterfaceStyle.alwaysLight property under params is not respected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs triageNeeds triageNeeds triage