tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

BasicCardPayment.webidl (1136B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 *
      6 * The origin of this WebIDL file is
      7 *   https://www.w3.org/TR/payment-method-basic-card/
      8 */
      9 
     10 [GenerateInit]
     11 dictionary BasicCardRequest {
     12  sequence<DOMString> supportedNetworks = [];
     13  boolean requestSecurityCode = true;
     14 };
     15 
     16 [GenerateConversionToJS]
     17 dictionary BasicCardResponse {
     18           DOMString cardholderName = "";
     19  required DOMString cardNumber;
     20           DOMString expiryMonth = "";
     21           DOMString expiryYear = "";
     22           DOMString cardSecurityCode = "";
     23           PaymentAddress? billingAddress = null;
     24 };
     25 
     26 [GenerateConversionToJS]
     27 dictionary BasicCardChangeDetails {
     28  PaymentAddress? billingAddress = null;
     29 };
     30 
     31 [GenerateInit]
     32 dictionary BasicCardErrors {
     33  DOMString cardNumber;
     34  DOMString cardholderName;
     35  DOMString cardSecurityCode;
     36  DOMString expiryMonth;
     37  DOMString expiryYear;
     38  AddressErrors billingAddress;
     39 };