Home | History | Annotate | Download | only in autofill

Lines Matching refs:wallet

45 #include "components/autofill/content/browser/wallet/form_field_error.h"
46 #include "components/autofill/content/browser/wallet/full_wallet.h"
47 #include "components/autofill/content/browser/wallet/instrument.h"
48 #include "components/autofill/content/browser/wallet/wallet_address.h"
49 #include "components/autofill/content/browser/wallet/wallet_items.h"
50 #include "components/autofill/content/browser/wallet/wallet_service_url.h"
51 #include "components/autofill/content/browser/wallet/wallet_signin_helper.h"
107 // Limit Wallet items refresh rate to at most once per minute.
110 // Returns true if |card_type| is supported by Wallet.
174 // wallet::Instrument requires a recipient name for its billing address.
246 const wallet::WalletItems::MaskedInstrument& instrument) {
248 case wallet::WalletItems::MaskedInstrument::VALID:
249 case wallet::WalletItems::MaskedInstrument::PENDING:
250 case wallet::WalletItems::MaskedInstrument::EXPIRED:
251 case wallet::WalletItems::MaskedInstrument::BILLING_INCOMPLETE:
298 const wallet::Address* FindDuplicateAddress(
299 const std::vector<wallet::Address*>& addresses,
300 const wallet::Address& address) {
315 DialogSection SectionFromLocation(wallet::FormFieldError::Location location) {
317 case wallet::FormFieldError::PAYMENT_INSTRUMENT:
318 case wallet::FormFieldError::LEGAL_ADDRESS:
321 case wallet::FormFieldError::SHIPPING_ADDRESS:
324 case wallet::FormFieldError::UNKNOWN_LOCATION:
333 base::string16 WalletErrorMessage(wallet::WalletClient::ErrorType error_type) {
335 case wallet::WalletClient::BUYER_ACCOUNT_ERROR:
338 case wallet::WalletClient::BUYER_LEGAL_ADDRESS_NOT_SUPPORTED:
342 case wallet::WalletClient::UNSUPPORTED_MERCHANT:
346 case wallet::WalletClient::BAD_REQUEST:
351 case wallet::WalletClient::INVALID_PARAMS:
356 case wallet::WalletClient::UNVERIFIED_KNOW_YOUR_CUSTOMER_STATUS:
360 case wallet::WalletClient::UNSUPPORTED_API_VERSION:
365 case wallet::WalletClient::SERVICE_UNAVAILABLE:
369 case wallet::WalletClient::INTERNAL_ERROR:
373 case wallet::WalletClient::MALFORMED_RESPONSE:
377 case wallet::WalletClient::NETWORK_ERROR:
381 case wallet::WalletClient::UNKNOWN_ERROR:
567 // Wallet data. Otherwise, see if the user could be signed in passively.
569 signin_helper_.reset(new wallet::WalletSigninHelper(
584 // Wallet items, in case they've changed.
674 return l10n_util::GetStringUTF16(IsSubmitPausedOn(wallet::VERIFY_CVV) ?
701 if (wallet_items_->HasRequiredAction(wallet::GAIA_AUTH))
704 if (wallet_items_->HasRequiredAction(wallet::PASSIVE_GAIA_AUTH))
751 if (IsSubmitPausedOn(wallet::VERIFY_CVV))
766 return !is_submitting_ || IsSubmitPausedOn(wallet::VERIFY_CVV);
771 !IsSubmitPausedOn(wallet::VERIFY_CVV) &&
783 // First-run, post-submit, Wallet expository page.
829 if (IsSubmitPausedOn(wallet::VERIFY_CVV))
848 wallet::RequiredAction required_action) const {
860 const wallet::Address* address = ActiveShippingAddress();
885 signin_helper_.reset(new wallet::WalletSigninHelper(
903 signin_helper_.reset(new wallet::WalletSigninHelper(
928 const std::vector<wallet::FormFieldError>& form_field_errors) {
932 for (std::vector<wallet::FormFieldError>::const_iterator it =
935 if (it->error_type() == wallet::FormFieldError::UNKNOWN_ERROR ||
937 it->location() == wallet::FormFieldError::UNKNOWN_LOCATION) {
949 DisableWallet(wallet::WalletClient::UNKNOWN_ERROR);
962 const std::vector<wallet::WalletItems::LegalDocument*>& documents =
966 const bool new_user = wallet_items_->HasRequiredAction(wallet::SETUP_WALLET);
1170 // If there were unrecoverable Wallet errors, or if there are choices other
1171 // than "Pay without the wallet", show the full menu.
1291 if (section == SECTION_CC_BILLING && IsSubmitPausedOn(wallet::VERIFY_CVV)) {
1292 const wallet::WalletItems::MaskedInstrument* current_instrument =
1310 (section == SECTION_CC_BILLING && IsSubmitPausedOn(wallet::VERIFY_CVV))) {
1317 const wallet::WalletItems::MaskedInstrument* AutofillDialogControllerImpl::
1338 const wallet::Address* AutofillDialogControllerImpl::
1500 // If the field is edited, clear any Wallet errors.
1576 // Wallet requires a first and last billing name.
1792 if (IsPayingWithWallet() && !wallet::IsUsingProd()) {
1820 if (IsSubmitPausedOn(wallet::VERIFY_CVV)) {
1966 if (IsSubmitPausedOn(wallet::VERIFY_CVV)) {
2051 if (wallet::IsSignInContinueUrl(load_details->entry->GetVirtualURL())) {
2054 signin_helper_.reset(new wallet::WalletSigninHelper(
2073 // Reset |last_wallet_items_fetch_timestamp_| to ensure that the Wallet
2078 wallet::GetManageAddressesUrl() : wallet::GetManageInstrumentsUrl();
2096 // wallet::WalletClientDelegate implementation.
2128 // TODO(dbeam): use the returned full wallet. b/8332329
2132 DisableWallet(wallet::WalletClient::UNKNOWN_ERROR);
2138 scoped_ptr<wallet::FullWallet> full_wallet) {
2153 case wallet::CHOOSE_ANOTHER_INSTRUMENT_OR_ADDRESS:
2161 case wallet::VERIFY_CVV:
2166 DisableWallet(wallet::WalletClient::UNKNOWN_ERROR);
2208 scoped_ptr<wallet::WalletItems> wallet_items) {
2220 const std::vector<wallet::RequiredAction>& required_actions,
2221 const std::vector<wallet::FormFieldError>& form_field_errors) {
2237 wallet::WalletClient::ErrorType error_type) {
2356 wallet
2432 wallet::WalletClient::ErrorType error_type) {
2470 const std::vector<wallet::Address*>& addresses =
2488 if (!IsSubmitPausedOn(wallet::VERIFY_CVV)) {
2489 const std::vector<wallet::WalletItems::MaskedInstrument*>& instruments =
2529 if (!wallet_items_->HasRequiredAction(wallet::SETUP_WALLET)) {
2534 UTF8ToUTF16(wallet::GetManageInstrumentsUrl().host()));
2616 } else if (!wallet_items_->HasRequiredAction(wallet::SETUP_WALLET)) {
2620 UTF8ToUTF16(wallet::GetManageAddressesUrl().host()));
2664 // Email is hidden while using Wallet, special case it.
2886 // Wallet only accepts MasterCard, Visa and Discover. No AMEX.
2936 const wallet::WalletItems::MaskedInstrument* instrument =
2942 wallet::WalletItems::MaskedInstrument::EXPIRED &&
2948 // by the Online Wallet server, mark it invalid on selection.
2964 // locally if that checkbox is showing (currently if not paying with wallet).
3006 const wallet::WalletItems::MaskedInstrument* active_instrument =
3013 const wallet::Address* active_address = ActiveShippingAddress();
3026 scoped_ptr<wallet::Instrument> inputted_instrument =
3033 scoped_ptr<wallet::Address> inputted_address;
3036 const wallet::Address& address = inputted_instrument ?
3040 const wallet::Address* duplicated_address =
3046 inputted_address.reset(new wallet::Address(address));
3071 scoped_ptr<wallet::Instrument> AutofillDialogControllerImpl::
3074 return scoped_ptr<wallet::Instrument>();
3084 return scoped_ptr<wallet::Instrument>(
3085 new wallet::Instrument(card, cvc, profile));
3088 scoped_ptr<wallet::Address>AutofillDialogControllerImpl::
3097 return scoped_ptr<wallet::Address>(new wallet::Address(profile));
3107 std::vector<wallet::WalletClient::RiskCapability> capabilities;
3108 capabilities.push_back(wallet::WalletClient::VERIFY_CVC);
3113 GetWalletClient()->GetFullWallet(wallet::WalletClient::FullWalletRequest(
3122 const std::vector<wallet::RequiredAction>& required_actions) {
3127 for (std::vector<wallet::RequiredAction>::const_iterator iter =
3130 if (*iter != wallet::INVALID_FORM_FIELD) {
3132 DisableWallet(wallet::WalletClient::UNKNOWN_ERROR);
3192 // On a successful submit, if the user manually selected "pay without wallet",
3193 // stop trying to pay with Wallet on future runs of the dialog. On the other
3195 // of using Wallet, leave the pref alone.
3400 // No Wallet items.
3406 // Has Wallet items.