-
Notifications
You must be signed in to change notification settings - Fork 66
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
Override payment method names #1380
Merged
araratthehero
merged 7 commits into
develop
from
feature/override_payment_method_names_configuration_method
Nov 14, 2023
Merged
Override payment method names #1380
araratthehero
merged 7 commits into
develop
from
feature/override_payment_method_names_configuration_method
Nov 14, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
araratthehero
commented
Nov 9, 2023
jreij
reviewed
Nov 9, 2023
.../src/main/java/com/adyen/checkout/dropin/internal/ui/model/DropInPaymentMethodInformation.kt
Outdated
Show resolved
Hide resolved
jreij
reviewed
Nov 9, 2023
drop-in/src/main/java/com/adyen/checkout/dropin/internal/ui/DropInViewModelFactory.kt
Outdated
Show resolved
Hide resolved
4d8ba44
to
59d67e5
Compare
jreij
reviewed
Nov 13, 2023
drop-in/src/main/java/com/adyen/checkout/dropin/internal/ui/CardComponentDialogFragment.kt
Show resolved
Hide resolved
jreij
reviewed
Nov 13, 2023
drop-in/src/main/java/com/adyen/checkout/dropin/internal/ui/DropInViewModelFactory.kt
Outdated
Show resolved
Hide resolved
jreij
reviewed
Nov 13, 2023
.../src/main/java/com/adyen/checkout/dropin/internal/ui/model/DropInPaymentMethodInformation.kt
Show resolved
Hide resolved
jreij
reviewed
Nov 13, 2023
drop-in/src/test/java/com/adyen/checkout/dropin/internal/ui/DropInViewModelFactoryTest.kt
Outdated
Show resolved
Hide resolved
jreij
reviewed
Nov 13, 2023
drop-in/src/test/java/com/adyen/checkout/dropin/internal/ui/DropInViewModelFactoryTest.kt
Show resolved
Hide resolved
…ent screen COAND-804
Add the necessary logic to override the name field of payment methods COAND-804
Add tests for overridePaymentMethodInformation function. COAND-804
Clean up code COAND-804
COAND-804 diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 5ba0f46de..04bbf7767 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,21 +1,12 @@ [//]: # (This file will be used for the release notes on GitHub when publishing.) -[//]: # (Types of changes: `Added` `Changed` `Deprecated` `Removed` `Fixed` `Security`) +[//]: # (Types of changes: `Breaking changes` `New` `Added` `Changed` `Deprecated` `Removed` `Fixed`) [//]: # (Example:) [//]: # (## Added) [//]: # ( - New payment method) [//]: # (## Changed) [//]: # ( - DropIn service's package changed from `com.adyen.dropin` to `com.adyen.dropin.services`) -[//]: # ( # Deprecated) +[//]: # (## Deprecated) [//]: # ( - Configurations public constructor are deprecated, please use each Configuration's builder to make a Configuration object) -## Fixed -- `@RestrictTo` annotations no longer cause false errors with Android Studio and Lint. -- Using the layout inspector or having view attribute inspection enabled in the developer options no longer causes a crash when viewing a payment method. -- Implementing the `:action` module no longer gives a duplicate class error caused by a duplicate namespace. -- For Drop-in, dismissing the gift card payment method no longer prevents further interaction. - -## Changed -- Dependency versions: - | Name | Version | - |--------------------------------------------------------------------------------------------------------|-------------------------------| - | [AndroidX Compose BoM](https://developer.android.com/jetpack/compose/bom/bom-mapping) | **2023.09.01** | +## New +- You can now override payment method names in drop in by using `DropInConfiguration.Builder.overridePaymentMethodName(type, name)`
COAND-804
4326ab8
to
e44f359
Compare
jreij
approved these changes
Nov 14, 2023
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.
🚀
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This change allows merchants to add custom information to payment methods, which will be shown instead of the values received in the payment methods api response.
Visa
,Mastercard
...), instead ofCredit Card
for stored payment methods.Here is an example on how merchants can override payment method name when building
DropInConfiguration
:Checklist
COAND-804