chromium/components/autofill/core/browser/payments/payments_service_url.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/autofill/core/browser/payments/payments_service_url.h"

#include <string>

#include "base/command_line.h"
#include "base/format_macros.h"
#include "base/metrics/field_trial.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/autofill/core/common/autofill_switches.h"
#include "google_apis/gaia/gaia_urls.h"
#include "net/base/url_util.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace autofill {
namespace {

// Service URLs used for calls to Google Payments endpoints.
const char kProdPaymentsServiceUrl[] =;
const char kSandboxPaymentsSecureServiceUrl[] =;

// Origins of execution used by Google Pay's pay.js script
const char kProdGooglePayScriptOrigin[] =;
const char kSandboxGooglePayScriptOrigin[] =;

// URLs used when opening the Payment methods management page from
// chrome://settings/payments.
const char kProdPaymentsManageCardsUrl[] =;
const char kSandboxPaymentsManageCardsUrl[] =;
// LINT.IfChange
const char kVirtualCardEnrollmentSupportUrl[] =;
// LINT.ThenChange(//chrome/android/java/src/org/chromium/chrome/browser/ChromeStringConstants.java)
}  // namespace

namespace payments {

bool IsPaymentsProductionEnabled() {}

GURL GetBaseSecureUrl() {}

url::Origin GetGooglePayScriptOrigin() {}

GURL GetManageInstrumentsUrl() {}

GURL GetManageInstrumentUrl(int64_t instrument_id) {}

GURL GetManageAddressesUrl() {}

GURL GetVirtualCardEnrollmentSupportUrl() {}

}  // namespace payments
}  // namespace autofill