OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.payments; | 5 package org.chromium.chrome.browser.payments; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.os.Handler; | 8 import android.os.Handler; |
9 import android.text.TextUtils; | 9 import android.text.TextUtils; |
10 import android.util.JsonWriter; | 10 import android.util.JsonWriter; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 @Override | 69 @Override |
70 public Set<String> getInstrumentMethodNames() { | 70 public Set<String> getInstrumentMethodNames() { |
71 Set<String> result = new HashSet<>(); | 71 Set<String> result = new HashSet<>(); |
72 result.add(mCard.getBasicCardPaymentType()); | 72 result.add(mCard.getBasicCardPaymentType()); |
73 return result; | 73 return result; |
74 } | 74 } |
75 | 75 |
76 @Override | 76 @Override |
77 public void invokePaymentApp(String unusedMerchantName, String unusedOrigin, | 77 public void invokePaymentApp(String unusedMerchantName, String unusedOrigin, |
78 PaymentItem unusedTotal, List<PaymentItem> unusedCart, | 78 byte[][] unusedCertificateChain, PaymentItem unusedTotal, |
79 Map<String, PaymentMethodData> unusedMethodData, | 79 List<PaymentItem> unusedCart, Map<String, PaymentMethodData> unusedM
ethodData, |
80 InstrumentDetailsCallback callback) { | 80 InstrumentDetailsCallback callback) { |
81 // The billing address should never be null for a credit card at this po
int. | 81 // The billing address should never be null for a credit card at this po
int. |
82 assert mBillingAddress != null; | 82 assert mBillingAddress != null; |
83 assert mIsComplete; | 83 assert mIsComplete; |
84 assert mCallback == null; | 84 assert mCallback == null; |
85 mCallback = callback; | 85 mCallback = callback; |
86 | 86 |
87 mIsWaitingForBillingNormalization = true; | 87 mIsWaitingForBillingNormalization = true; |
88 mIsWaitingForFullCardDetails = true; | 88 mIsWaitingForFullCardDetails = true; |
89 | 89 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 /** @return The credit card represented by this payment instrument. */ | 294 /** @return The credit card represented by this payment instrument. */ |
295 public CreditCard getCard() { | 295 public CreditCard getCard() { |
296 return mCard; | 296 return mCard; |
297 } | 297 } |
298 | 298 |
299 /** @return The billing address associated with this credit card. */ | 299 /** @return The billing address associated with this credit card. */ |
300 public AutofillProfile getBillingAddress() { | 300 public AutofillProfile getBillingAddress() { |
301 return mBillingAddress; | 301 return mBillingAddress; |
302 } | 302 } |
303 } | 303 } |
OLD | NEW |