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
collectBankAccountToken method as a parameter. Passing the params parameter is optional, but the failures occurs whether it's present or not.
- Observe a failure with exception
PlatformException with 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.
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:
collectBankAccountTokenmethod as a parameter. Passing theparamsparameter is optional, but the failures occurs whether it's present or not.PlatformExceptionwith the following stack trace:Expected behavior
The method is called correctly and the modal sheet that allows user to connect a bank is show.
Smartphone / tablet
Additional context
After forking and adding the missing parameter, the method gets called correctly, but the
userInterfaceStyle: UserInterfaceStyle.alwaysLightproperty under params is not respected.