-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
Pay plugin #4
Pay plugin #4
Conversation
- allow creating cards with token (Android only atm)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the rest looks good just check why those two files are not generated anymore
@@ -1,761 +0,0 @@ | |||
// GENERATED CODE - DO NOT MODIFY BY HAND |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a bit suspicious that this is removed while we still use freezes in this file. Propably freeze code gen fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just forgot to commit them
@@ -1,307 +0,0 @@ | |||
// GENERATED CODE - DO NOT MODIFY BY HAND |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like payment method codegen fails here
# Conflicts: # stripe_platform_interface/lib/src/models/card_field_input.dart # stripe_platform_interface/lib/src/models/card_field_input.freezed.dart # stripe_platform_interface/lib/src/models/card_field_input.g.dart # stripe_platform_interface/lib/src/models/payment_methods.dart # stripe_platform_interface/lib/src/models/payment_methods.freezed.dart # stripe_platform_interface/lib/src/models/payment_methods.g.dart
.setNumber(card.getString("number").orEmpty()) | ||
.build() | ||
if (card.hasKey("token")) { | ||
return PaymentMethodCreateParams.Card.create(card.getString("token")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to do `PaymentMethodCreateParams.Card.create(card.getString("token")!!) otherwise Android would throw a type mismatch error. Did you not get that build error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, compiled and worked fine on the device for me with Android Studio 4.1.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't know it was marked nullable on React Native - my bad
Can you quickly fix it? Otherwise I'll send a PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yah, no worries, already done before merging: stripe/stripe-react-native@407fd89
Just wanted to flag with you in case it applied here also.
No description provided.