-
Notifications
You must be signed in to change notification settings - Fork 658
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
Add Multibanco support to PaymentSheet and bindings #8433
Conversation
"next_action_spec": { | ||
"confirm_response_status_specs": { | ||
"requires_action": { | ||
"type": "multibanco_display_details" | ||
} | ||
}, | ||
"post_confirm_handling_pi_status_specs": { | ||
"succeeded": { | ||
"type": "finished" | ||
}, | ||
"requires_action": { | ||
"type": "canceled" | ||
} | ||
} | ||
} |
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.
Wasn't clear on whether we actually need the next_action_spec
given #8053
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've been leaving the JSON exactly as it is on the server to try to make things consistent and not confusing.
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.
On iOS leaving this next_action_spec would probably make handling the next action fail FWIW.
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.
Removed this after Jay and I chatted. It's not in the server spec anyway
28fb0e5
to
d64471b
Compare
payments-core/src/test/java/com/stripe/android/ApiKeyFixtures.kt
Outdated
Show resolved
Hide resolved
Diffuse output:
APK
DEX
ARSC
|
Still need to run the Lokalize script and apiDump, but having some issues with my Java env. Will pair with someone |
import com.stripe.android.model.PaymentMethod | ||
import com.stripe.android.model.PaymentMethodCreateParams | ||
|
||
class MultibancoActivity : StripeIntentActivity() { |
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.
This is heavily cargo culted from other Activities in the Example app; please lmk if I've faltered
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.
Yeah, I think this is the right thing to do for now. I added this as an improvement we can make, but it seems low bar since it's example code.
...ain/java/com/stripe/android/lpmfoundations/paymentmethod/definitions/MultibancoDefinition.kt
Outdated
Show resolved
Hide resolved
@@ -93,4 +93,5 @@ | |||
<string name="stripe_setup_button_label">Set up</string> | |||
<!-- Label for UPI ID number field on form --> | |||
<string name="stripe_upi_id_label">UPI ID</string> | |||
<string name="stripe_paymentsheet_payment_method_multibanco">Multibanco</string> |
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 think we normally put these in donottranslate, as most of the time these are names, and don't get translated.
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.
The lokalise build won't fail if you do that too. See others here:
<string name="stripe_paymentsheet_payment_method_twint">TWINT</string> |
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 nice! Android Studio warns against adding anything to anything but the translations editor, so I didn't realize some were in different files
d653adf
to
ccd56c2
Compare
Summary
Added Multibanco support on PaymentIntents to bindings, and added support to PaymentSheet as well
Motivation
https://docs.google.com/document/d/1QVT2zuwkz9IFTBNyjsYV_zzfeOsWva8gpSz2vXPHfW8/edit
Testing
Screenshots
Changelog
Updated CHANGELOG.md