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

Unified Diff: ios/chrome/browser/payments/payment_request.h

Issue 2750363002: [Payment Request] supported card networks + adding a credit card. (Closed)
Patch Set: Addressed comments Created 3 years, 9 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
« no previous file with comments | « no previous file | ios/chrome/browser/payments/payment_request.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/payments/payment_request.h
diff --git a/ios/chrome/browser/payments/payment_request.h b/ios/chrome/browser/payments/payment_request.h
index bfcec312bc2abe0c028b86e090209106ad198f94..1ab57ebedafedad3ef525a8bd3f7d661d97fa543 100644
--- a/ios/chrome/browser/payments/payment_request.h
+++ b/ios/chrome/browser/payments/payment_request.h
@@ -94,6 +94,13 @@ class PaymentRequest {
return shipping_profiles_;
}
+ const std::vector<std::string>& supported_card_networks() const {
+ return supported_card_networks_;
+ }
+
+ // Adds |credit_card| to the list of cached credit cards.
+ void AddCreditCard(std::unique_ptr<autofill::CreditCard> credit_card);
+
// Returns the available autofill credit cards for this user that match a
// supported type specified in |web_payment_request_|.
const std::vector<autofill::CreditCard*>& credit_cards() const {
@@ -167,6 +174,9 @@ class PaymentRequest {
std::vector<autofill::CreditCard*> credit_cards_;
autofill::CreditCard* selected_credit_card_;
+ // A vector of supported basic card networks.
+ std::vector<std::string> supported_card_networks_;
+
// A vector of pointers to the shipping options in |web_payment_request_|.
std::vector<web::PaymentShippingOption*> shipping_options_;
web::PaymentShippingOption* selected_shipping_option_;
« no previous file with comments | « no previous file | ios/chrome/browser/payments/payment_request.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698