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

fix: collectBankAccount returns PlatformException(Invalid Params) #1507

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

xkxeeshankhan
Copy link

@xkxeeshankhan xkxeeshankhan commented Nov 27, 2023

closes: #1467

Refactor collectBankAccount to resolve the issue.

Changed isPaymentIntent to intentType and BillingDetails to PaymentMethodData.

The methodChannel invokes collectBankAccount which shows the Stripe sheet, but due to above issues the problems was occuring which is reported in #1467 .

The generated code is created using flutter pub run build_runner build --delete-conflicting-outputs, note that the new generated files now has a different way of creating classes.

@xkxeeshankhan xkxeeshankhan marked this pull request as draft November 28, 2023 10:17
@xkxeeshankhan
Copy link
Author

Waiting for initial feedback

required String clientSecret,
required CollectBankAccountParams params,
}) async {
final result = await _methodChannel
.invokeMapMethod<String, dynamic>('collectBankAccount', {
'isPaymentIntent': isPaymentIntent,
'intentType': true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think isPaymentIntent should remain and is a bit clearer than "intentType"

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

Successfully merging this pull request may close these issues.

collectBankAccount returns PlatformException
2 participants