1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
|
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_PAYMENTS_REQUEST_DETAILS_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_PAYMENTS_REQUEST_DETAILS_H_
#include <memory>
#include <optional>
#include <set>
#include <string>
#include "base/values.h"
#include "components/autofill/core/browser/data_model/addresses/autofill_profile.h"
#include "components/autofill/core/browser/data_model/payments/credit_card.h"
#include "components/autofill/core/browser/payments/autofill_error_dialog_context.h"
#include "components/autofill/core/browser/payments/card_unmask_challenge_option.h"
#include "components/autofill/core/browser/payments/card_unmask_delegate.h"
#include "components/autofill/core/browser/payments/client_behavior_constants.h"
#include "components/autofill/core/browser/payments/payments_autofill_client.h"
#include "components/autofill/core/browser/payments/payments_window_manager.h"
#include "components/autofill/core/browser/payments/virtual_card_enrollment_flow.h"
#include "url/gurl.h"
namespace autofill::payments {
// Details for card unmasking, such as the suggested method of authentication,
// along with any information required to facilitate the authentication.
struct UnmaskDetails {
UnmaskDetails();
UnmaskDetails(const UnmaskDetails&);
UnmaskDetails(UnmaskDetails&&);
UnmaskDetails& operator=(const UnmaskDetails&);
UnmaskDetails& operator=(UnmaskDetails&&);
~UnmaskDetails();
// The type of authentication method suggested for card unmask.
PaymentsAutofillClient::UnmaskAuthMethod unmask_auth_method =
PaymentsAutofillClient::UnmaskAuthMethod::kUnknown;
// Boolean to denote that the user is not opted-in to FIDO in the server, but
// is eligible for opt-in.
bool server_denotes_fido_eligible_but_not_opted_in = false;
// Public Key Credential Request Options required for authentication.
// https://www.w3.org/TR/webauthn/#dictdef-publickeycredentialrequestoptions
base::Value::Dict fido_request_options;
// Set of credit cards ids that are eligible for FIDO Authentication.
std::set<std::string> fido_eligible_card_ids;
};
// A collection of the information required to make a credit card unmask
// request.
struct UnmaskRequestDetails {
UnmaskRequestDetails();
UnmaskRequestDetails(const UnmaskRequestDetails& other);
UnmaskRequestDetails(UnmaskRequestDetails&&);
UnmaskRequestDetails& operator=(const UnmaskRequestDetails& other);
UnmaskRequestDetails& operator=(UnmaskRequestDetails&&);
~UnmaskRequestDetails();
int64_t billing_customer_number = 0;
CreditCard card;
std::string risk_data;
CardUnmaskDelegate::UserProvidedUnmaskDetails user_response;
std::optional<base::Value::Dict> fido_assertion_info;
std::u16string otp;
// An opaque token used to chain consecutive payments requests together.
std::string context_token;
// The origin of the primary main frame where the unmasking happened.
// Should be populated when the unmasking is for a virtual-card.
// TODO(crbug.com/325465172): Convert this to an std::optional<url::Origin>.
std::optional<GURL> last_committed_primary_main_frame_origin;
// The selected challenge option. Should be populated when we are doing CVC
// unmasking for a virtual card.
std::optional<CardUnmaskChallengeOption> selected_challenge_option;
// A vector of signals used to share client behavior with the Payments
// server.
std::vector<ClientBehaviorConstants> client_behavior_signals;
// The token received in the final redirect of a PaymentsWindowManager flow,
// which is the only scenario where this field should be populated.
PaymentsWindowManager::RedirectCompletionResult redirect_completion_result;
};
// Information retrieved from an UnmaskRequest.
struct UnmaskResponseDetails {
UnmaskResponseDetails();
UnmaskResponseDetails(const UnmaskResponseDetails& other);
UnmaskResponseDetails(UnmaskResponseDetails&&);
UnmaskResponseDetails& operator=(const UnmaskResponseDetails& other);
UnmaskResponseDetails& operator=(UnmaskResponseDetails&&);
~UnmaskResponseDetails();
UnmaskResponseDetails& with_real_pan(std::string r) {
real_pan = r;
return *this;
}
UnmaskResponseDetails& with_dcvv(std::string d) {
dcvv = d;
return *this;
}
std::string real_pan;
std::string dcvv;
// The expiration month of the card. It falls in between 1 - 12. Should be
// populated when the card is a virtual-card which does not necessarily have
// the same expiration date as its related actual card.
std::string expiration_month;
// The four-digit expiration year of the card. Should be populated when the
// card is a virtual-card which does not necessarily have the same
// expiration date as its related actual card.
std::string expiration_year;
// Challenge required for authorizing user for FIDO authentication for
// future card unmasking.
base::Value::Dict fido_request_options;
// An opaque token used to logically chain consecutive UnmaskCard and
// OptChange calls together.
std::string card_authorization_token;
// Available card unmask challenge options.
std::vector<CardUnmaskChallengeOption> card_unmask_challenge_options;
// An opaque token used to chain consecutive payments requests together.
// Client should not update or modify this token.
std::string context_token;
// An intermediate status in cases other than immediate success or failure.
std::string flow_status;
// The type of the returned credit card.
PaymentsAutofillClient::PaymentsRpcCardType card_type =
PaymentsAutofillClient::PaymentsRpcCardType::kUnknown;
// Context for the error dialog that is returned from the Payments server.
// If present, that means this response was an error, and these fields
// should be used for the autofill error dialog as they will provide detail
// into the specific error that occurred.
std::optional<AutofillErrorDialogContext> autofill_error_dialog_context;
};
// A collection of information required to make an unmask IBAN request.
struct UnmaskIbanRequestDetails {
UnmaskIbanRequestDetails();
UnmaskIbanRequestDetails(const UnmaskIbanRequestDetails& other);
~UnmaskIbanRequestDetails();
int64_t billing_customer_number = 0;
int64_t instrument_id;
};
// Information required to either opt-in or opt-out a user for FIDO
// Authentication.
struct OptChangeRequestDetails {
OptChangeRequestDetails();
OptChangeRequestDetails(const OptChangeRequestDetails& other);
~OptChangeRequestDetails();
std::string app_locale;
// The reason for making the request.
enum Reason {
// Unknown default.
UNKNOWN_REASON = 0,
// The user wants to enable FIDO authentication for card unmasking.
ENABLE_FIDO_AUTH = 1,
// The user wants to disable FIDO authentication for card unmasking.
DISABLE_FIDO_AUTH = 2,
// The user is authorizing a new card for future FIDO authentication
// unmasking.
ADD_CARD_FOR_FIDO_AUTH = 3,
};
// Reason for the request.
Reason reason;
// Signature required for enrolling user into FIDO authentication for future
// card unmasking.
std::optional<base::Value::Dict> fido_authenticator_response;
// An opaque token used to logically chain consecutive UnmaskCard and
// OptChange calls together.
std::string card_authorization_token;
};
// Information retrieved from an OptChange request.
struct OptChangeResponseDetails {
OptChangeResponseDetails();
OptChangeResponseDetails(const OptChangeResponseDetails& other);
~OptChangeResponseDetails();
// Unset if response failed. True if user is opted-in for FIDO
// authentication for card unmasking. False otherwise.
std::optional<bool> user_is_opted_in;
// Challenge required for enrolling user into FIDO authentication for future
// card unmasking.
std::optional<base::Value::Dict> fido_creation_options;
// Challenge required for authorizing user for FIDO authentication for
// future card unmasking.
std::optional<base::Value::Dict> fido_request_options;
};
// A collection of the information required to make local credit cards
// migration request.
struct MigrationRequestDetails {
MigrationRequestDetails();
MigrationRequestDetails(const MigrationRequestDetails& other);
~MigrationRequestDetails();
int64_t billing_customer_number = 0;
std::u16string context_token;
std::string risk_data;
std::string app_locale;
};
// A collection of the information required to make select challenge option
// request.
struct SelectChallengeOptionRequestDetails {
SelectChallengeOptionRequestDetails();
SelectChallengeOptionRequestDetails(
const SelectChallengeOptionRequestDetails& other);
~SelectChallengeOptionRequestDetails();
CardUnmaskChallengeOption selected_challenge_option;
// An opaque token used to chain consecutive payments requests together.
std::string context_token;
int64_t billing_customer_number = 0;
};
// A collection of information needed for the
// UpdateVirtualCardEnrollmentRequest.
struct UpdateVirtualCardEnrollmentRequestDetails {
UpdateVirtualCardEnrollmentRequestDetails();
UpdateVirtualCardEnrollmentRequestDetails(
const UpdateVirtualCardEnrollmentRequestDetails&);
UpdateVirtualCardEnrollmentRequestDetails& operator=(
const UpdateVirtualCardEnrollmentRequestDetails&);
~UpdateVirtualCardEnrollmentRequestDetails();
// Denotes the source that the corresponding
// UpdateVirtualCardEnrollmentRequest for this
// UpdateVirtualCardEnrollmentRequestDetails originated from, i.e., a
// |virtual_card_enrollment_source| of kUpstream means the request happens
// after a user saved a card in the upstream flow.
VirtualCardEnrollmentSource virtual_card_enrollment_source =
VirtualCardEnrollmentSource::kNone;
// Denotes the type of this specific UpdateVirtualCardEnrollmentRequest,
// i.e., a type of VirtualCardEnrollmentRequestType::kEnroll would mean this
// is an enroll request.
VirtualCardEnrollmentRequestType virtual_card_enrollment_request_type =
VirtualCardEnrollmentRequestType::kNone;
// The billing customer number for the account this request is sent to. If
// |billing_customer_number| is non-zero, it means the user has a Google
// Payments account.
int64_t billing_customer_number = 0;
// Populated if it is an unenroll request. |instrument_id| lets the server
// know which card to unenroll from VCN.
std::optional<int64_t> instrument_id;
// Populated if it is an enroll request. Based on the |vcn_context_token|
// the server is able to retrieve the instrument id, and using
// |vcn_context_token| for enroll allows the server to link a
// GetDetailsForEnroll call with the corresponding Enroll call.
std::optional<std::string> vcn_context_token;
};
// The struct to hold all detailed information to construct a
// GetDetailsForEnrollmentRequest.
struct GetDetailsForEnrollmentRequestDetails {
GetDetailsForEnrollmentRequestDetails();
GetDetailsForEnrollmentRequestDetails(
const GetDetailsForEnrollmentRequestDetails& other);
~GetDetailsForEnrollmentRequestDetails();
// The type of the enrollment this request is for.
VirtualCardEnrollmentSource source = VirtualCardEnrollmentSource::kNone;
// |instrument_id| is used by the server to identify a specific card to get
// details for.
int64_t instrument_id = 0;
// The billing customer number of the account this request is sent to.
int64_t billing_customer_number = 0;
// |risk_data| contains some fingerprint data for the user and the device.
std::string risk_data;
// |app_locale| is the Chrome locale.
std::string app_locale;
};
// A collection of information received in the response for a
// GetDetailsForEnrollRequest.
struct GetDetailsForEnrollmentResponseDetails {
GetDetailsForEnrollmentResponseDetails();
GetDetailsForEnrollmentResponseDetails(
const GetDetailsForEnrollmentResponseDetails& other);
~GetDetailsForEnrollmentResponseDetails();
// |vcn_context_token| is used in the sequential Enroll call, where it
// allows the server to get the instrument id for this |vcn_context_token|
// and link this specific GetDetailsForEnroll call with its corresponding
// enroll call.
std::string vcn_context_token;
// Google's legal message lines in the virtual-card enroll flow for this
// specific card based on |vcn_context_token|.
LegalMessageLines google_legal_message;
// The issuer's legal message lines in the virtual-card enroll flow for this
// specific card based on |vcn_context_token|.
LegalMessageLines issuer_legal_message;
};
// An enum set in the GetCardUploadDetailsRequest indicating the source of the
// request when uploading a card to Google Payments. It should stay consistent
// with the same enum in Google Payments server code.
enum UploadCardSource {
// Source unknown.
UNKNOWN_UPLOAD_CARD_SOURCE,
// Single card is being uploaded from the normal credit card offer-to-save
// prompt during a checkout flow.
UPSTREAM_CHECKOUT_FLOW,
// Single card is being uploaded from chrome://settings/payments.
UPSTREAM_SETTINGS_PAGE,
// Single card is being uploaded after being scanned by OCR.
UPSTREAM_CARD_OCR,
// Single card is being uploaded from the Save and Fill dialog during a
// non-post-checkout flow.
UPSTREAM_SAVE_AND_FILL,
};
// A collection of the information required to make a credit card upload
// request.
struct UploadCardRequestDetails {
UploadCardRequestDetails();
UploadCardRequestDetails(const UploadCardRequestDetails& other);
~UploadCardRequestDetails();
int64_t billing_customer_number = 0;
int detected_values;
CreditCard card;
std::u16string cvc;
std::vector<AutofillProfile> profiles;
std::u16string context_token;
std::string risk_data;
std::string app_locale;
std::vector<ClientBehaviorConstants> client_behavior_signals;
UploadCardSource upload_card_source =
UploadCardSource::UNKNOWN_UPLOAD_CARD_SOURCE;
};
// A collection of information required to make an IBAN upload request.
struct UploadIbanRequestDetails {
UploadIbanRequestDetails();
UploadIbanRequestDetails(const UploadIbanRequestDetails& other);
~UploadIbanRequestDetails();
std::string app_locale;
int64_t billing_customer_number = 0;
std::u16string context_token;
std::u16string value;
std::u16string nickname;
std::string risk_data;
};
// A collection of information received in the response for an
// UploadCardRequest.
struct UploadCardResponseDetails {
UploadCardResponseDetails();
UploadCardResponseDetails(const UploadCardResponseDetails&);
UploadCardResponseDetails(UploadCardResponseDetails&&);
UploadCardResponseDetails& operator=(const UploadCardResponseDetails&);
UploadCardResponseDetails& operator=(UploadCardResponseDetails&&);
~UploadCardResponseDetails();
// |instrument_id| is used by the server as an identifier for the card that
// was uploaded. Currently, we have it in the UploadCardResponseDetails so
// that we can send it in the GetDetailsForEnrollRequest in the virtual card
// enrollment flow. Will only not be populated in the case of an imperfect
// conversion from string to int64_t, or if the server does not return an
// instrument id.
std::optional<int64_t> instrument_id;
// |virtual_card_enrollment_state| is used to determine whether we want to
// pursue further action with the credit card that was uploaded regarding
// virtual card enrollment. For example, if the state is
// kUnenrolledAndEligible we might offer the user the option to enroll the
// card that was uploaded into virtual card.
CreditCard::VirtualCardEnrollmentState virtual_card_enrollment_state =
CreditCard::VirtualCardEnrollmentState::kUnspecified;
// |card_art_url| is the mapping that would be used by PersonalDataManager
// to try to get the card art for the credit card that was uploaded. It is
// used in flows where after uploading a card we want to display its card
// art. Since chrome sync does not instantly sync the card art with the url,
// the actual card art image might not always be present. Flows that use
// |card_art_url| need to make sure they handle the case where the image has
// not been synced yet. For virtual card eligible cards this should not be
// empty. If using this field use DCHECKs to ensure it is populated.
GURL card_art_url;
// If the uploaded card is VCN eligible,
// |get_details_for_enrollment_response_details| will be populated so that
// we can display the virtual card enrollment bubble without needing to do
// another GetDetailsForEnroll network call.
std::optional<GetDetailsForEnrollmentResponseDetails>
get_details_for_enrollment_response_details;
};
// A collection of information required to fetch details for creating a payment
// instrument request to link a BNPL partner.
struct GetDetailsForCreateBnplPaymentInstrumentRequestDetails {
GetDetailsForCreateBnplPaymentInstrumentRequestDetails();
GetDetailsForCreateBnplPaymentInstrumentRequestDetails(
const GetDetailsForCreateBnplPaymentInstrumentRequestDetails& other);
GetDetailsForCreateBnplPaymentInstrumentRequestDetails& operator=(
const GetDetailsForCreateBnplPaymentInstrumentRequestDetails& other);
GetDetailsForCreateBnplPaymentInstrumentRequestDetails(
GetDetailsForCreateBnplPaymentInstrumentRequestDetails&&);
GetDetailsForCreateBnplPaymentInstrumentRequestDetails& operator=(
GetDetailsForCreateBnplPaymentInstrumentRequestDetails&&);
~GetDetailsForCreateBnplPaymentInstrumentRequestDetails();
// `app_locale` is the Chrome locale.
std::string app_locale;
// The billing customer number for the account this request is sent to.
int64_t billing_customer_number;
// The ID of the BNPL partner to be linked. i.e. Affirm
std::string issuer_id;
};
// A collection of information required to create a payment instrument request
// to link a BNPL partner.
struct CreateBnplPaymentInstrumentRequestDetails {
CreateBnplPaymentInstrumentRequestDetails();
CreateBnplPaymentInstrumentRequestDetails(
const CreateBnplPaymentInstrumentRequestDetails& other);
CreateBnplPaymentInstrumentRequestDetails& operator=(
const CreateBnplPaymentInstrumentRequestDetails& other);
CreateBnplPaymentInstrumentRequestDetails(
CreateBnplPaymentInstrumentRequestDetails&&);
CreateBnplPaymentInstrumentRequestDetails& operator=(
CreateBnplPaymentInstrumentRequestDetails&&);
~CreateBnplPaymentInstrumentRequestDetails();
// `app_locale` is the Chrome locale.
std::string app_locale;
// The billing customer number for the account this request is sent to.
int64_t billing_customer_number;
// The ID of the BNPL partner to be linked. i.e. Affirm
std::string issuer_id;
// An opaque token used to chain consecutive payments requests together.
std::string context_token;
// Client encoded risk data.
std::string risk_data;
};
// A collection of information required to fetch the BNPL VCN details.
struct GetBnplPaymentInstrumentForFetchingVcnRequestDetails {
GetBnplPaymentInstrumentForFetchingVcnRequestDetails();
GetBnplPaymentInstrumentForFetchingVcnRequestDetails(
const GetBnplPaymentInstrumentForFetchingVcnRequestDetails& other);
GetBnplPaymentInstrumentForFetchingVcnRequestDetails& operator=(
const GetBnplPaymentInstrumentForFetchingVcnRequestDetails& other);
GetBnplPaymentInstrumentForFetchingVcnRequestDetails(
GetBnplPaymentInstrumentForFetchingVcnRequestDetails&&);
GetBnplPaymentInstrumentForFetchingVcnRequestDetails& operator=(
GetBnplPaymentInstrumentForFetchingVcnRequestDetails&&);
~GetBnplPaymentInstrumentForFetchingVcnRequestDetails();
// The number for the Google Payments account this request is sent to.
int64_t billing_customer_number;
// The instrument ID is used by the server to identify a specific BNPL issuer.
std::string instrument_id;
// The fingerprint data for the user and the device.
std::string risk_data;
// An opaque token used to chain consecutive payments requests together.
// Client should not update or modify this token.
std::string context_token;
// The URL the partner redirected the user to after finishing the BNPL flow on
// the partner website.
GURL redirect_url;
// The ID of the BNPL partner the user is trying to retrieve the VCN from.
std::string issuer_id;
};
// Information retrieved from a BNPL FetchVcnRequest.
struct BnplFetchVcnResponseDetails {
BnplFetchVcnResponseDetails();
BnplFetchVcnResponseDetails(const BnplFetchVcnResponseDetails& other);
BnplFetchVcnResponseDetails(BnplFetchVcnResponseDetails&&);
BnplFetchVcnResponseDetails& operator=(
const BnplFetchVcnResponseDetails& other);
BnplFetchVcnResponseDetails& operator=(BnplFetchVcnResponseDetails&&);
~BnplFetchVcnResponseDetails();
std::string pan;
std::string cvv;
// The expiration month of the card. It falls in between 1 - 12.
std::string expiration_month;
// The four-digit expiration year of the card.
std::string expiration_year;
std::string cardholder_name;
};
// A collection of information required to fetch the BNPL redirect URL details.
struct GetBnplPaymentInstrumentForFetchingUrlRequestDetails {
GetBnplPaymentInstrumentForFetchingUrlRequestDetails();
GetBnplPaymentInstrumentForFetchingUrlRequestDetails(
const GetBnplPaymentInstrumentForFetchingUrlRequestDetails& other);
GetBnplPaymentInstrumentForFetchingUrlRequestDetails& operator=(
const GetBnplPaymentInstrumentForFetchingUrlRequestDetails& other);
GetBnplPaymentInstrumentForFetchingUrlRequestDetails(
GetBnplPaymentInstrumentForFetchingUrlRequestDetails&&);
GetBnplPaymentInstrumentForFetchingUrlRequestDetails& operator=(
GetBnplPaymentInstrumentForFetchingUrlRequestDetails&&);
~GetBnplPaymentInstrumentForFetchingUrlRequestDetails();
// The number for the Google Payments account this request is sent to.
int64_t billing_customer_number;
// The instrument ID is used by the server to identify a specific BNPL issuer.
std::string_view instrument_id;
// The fingerprint data for the user and the device.
std::string_view risk_data;
// The merchant domain (including the scheme).
GURL merchant_domain;
// The total purchase amount (in micros) from the merchant checkout page.
uint64_t total_amount;
// Currency of the amount represented by a three-letter currency code.
std::string_view currency;
};
// Information retrieved from a BNPL FetchUrlRequest.
struct BnplFetchUrlResponseDetails {
BnplFetchUrlResponseDetails();
BnplFetchUrlResponseDetails(const BnplFetchUrlResponseDetails& other);
BnplFetchUrlResponseDetails(BnplFetchUrlResponseDetails&&);
BnplFetchUrlResponseDetails& operator=(
const BnplFetchUrlResponseDetails& other);
BnplFetchUrlResponseDetails& operator=(BnplFetchUrlResponseDetails&&);
~BnplFetchUrlResponseDetails();
// The URL used to redirect the user to the partner website.
GURL redirect_url;
// The prefix of the URL the partner redirects the user to after finishing the
// BNPL flow successfully on the partner website.
GURL success_url_prefix;
// The prefix of the URL the partner redirects the user to after failing to
// finish the BNPL flow on the partner website.
GURL failure_url_prefix;
// An opaque token used to chain consecutive payments requests together.
// Client should not update or modify this token.
std::string context_token;
};
} // namespace autofill::payments
#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_PAYMENTS_REQUEST_DETAILS_H_
|