Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm

Issue 2963163002: [Payment Request] Displays accepted card types (credit, debit, etc) in iOS (Closed)
Patch Set: Addressed comment Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm
diff --git a/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm b/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm
index 65b549606d92dc7ce4cc43a571cf839194b785ec..b03947ddd9912a215b1350d3acdcb04363e042bb 100644
--- a/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm
+++ b/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm
@@ -11,6 +11,7 @@
#include "components/autofill/core/browser/personal_data_manager.h"
#import "components/autofill/ios/browser/credit_card_util.h"
#include "components/payments/core/payment_request_data_util.h"
+#include "components/payments/core/strings_util.h"
#include "components/strings/grit/components_strings.h"
#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/payments/payment_request.h"
@@ -136,7 +137,8 @@ using ::payment_request_util::GetBillingAddressLabelFromAutofillProfile;
AcceptedPaymentMethodsItem* acceptedMethodsItem =
[[AcceptedPaymentMethodsItem alloc] init];
acceptedMethodsItem.message =
- l10n_util::GetNSString(IDS_PAYMENTS_ACCEPTED_CARDS_LABEL);
+ base::SysUTF16ToNSString(payments::GetAcceptedCardTypesText(
+ _paymentRequest->supported_card_types_set()));
acceptedMethodsItem.methodTypeIcons = issuerNetworkIcons;
return acceptedMethodsItem;
}
« no previous file with comments | « ios/chrome/browser/payments/payment_request.mm ('k') | ios/chrome/browser/ui/payments/payment_method_selection_mediator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698