secure-payment-confirmation.idl (2822B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Secure Payment Confirmation (https://w3c.github.io/secure-payment-confirmation/) 5 6 dictionary SecurePaymentConfirmationRequest { 7 required BufferSource challenge; 8 required USVString rpId; 9 required sequence<BufferSource> credentialIds; 10 required PaymentCredentialInstrument instrument; 11 unsigned long timeout; 12 USVString payeeName; 13 USVString payeeOrigin; 14 sequence<PaymentEntityLogo> paymentEntitiesLogos; 15 AuthenticationExtensionsClientInputs extensions; 16 sequence<PublicKeyCredentialParameters> browserBoundPubKeyCredParams; 17 sequence<USVString> locale; 18 boolean showOptOut; 19 }; 20 21 enum SecurePaymentConfirmationAvailability { 22 "available", 23 "unavailable-unknown-reason", 24 "unavailable-feature-not-enabled", 25 "unavailable-no-permission-policy", 26 "unavailable-no-user-verifying-platform-authenticator", 27 }; 28 29 partial interface PaymentRequest { 30 static Promise<SecurePaymentConfirmationAvailability> securePaymentConfirmationAvailability(); 31 }; 32 33 partial dictionary AuthenticationExtensionsClientInputs { 34 AuthenticationExtensionsPaymentInputs payment; 35 }; 36 37 dictionary AuthenticationExtensionsPaymentInputs { 38 boolean isPayment; 39 sequence<PublicKeyCredentialParameters> browserBoundPubKeyCredParams; 40 41 // Only used for authentication. 42 USVString rpId; 43 USVString topOrigin; 44 USVString payeeName; 45 USVString payeeOrigin; 46 sequence<PaymentEntityLogo> paymentEntitiesLogos; 47 PaymentCurrencyAmount total; 48 PaymentCredentialInstrument instrument; 49 }; 50 51 partial dictionary AuthenticationExtensionsClientOutputs { 52 AuthenticationExtensionsPaymentOutputs payment; 53 }; 54 55 dictionary AuthenticationExtensionsPaymentOutputs { 56 BrowserBoundSignature browserBoundSignature; 57 }; 58 59 dictionary BrowserBoundSignature { 60 required ArrayBuffer signature; 61 }; 62 63 dictionary CollectedClientPaymentData : CollectedClientData { 64 required (CollectedClientAdditionalPaymentData or CollectedClientAdditionalPaymentRegistrationData) payment; 65 }; 66 67 dictionary CollectedClientAdditionalPaymentData { 68 required USVString rpId; 69 required USVString topOrigin; 70 USVString payeeName; 71 USVString payeeOrigin; 72 sequence<PaymentEntityLogo> paymentEntitiesLogos; 73 required PaymentCurrencyAmount total; 74 required PaymentCredentialInstrument instrument; 75 USVString browserBoundPublicKey; 76 }; 77 78 dictionary CollectedClientAdditionalPaymentRegistrationData { 79 USVString browserBoundPublicKey; 80 }; 81 82 dictionary PaymentCredentialInstrument { 83 required USVString displayName; 84 required USVString icon; 85 boolean iconMustBeShown = true; 86 USVString details; 87 }; 88 89 dictionary PaymentEntityLogo { 90 required USVString url; 91 required USVString label; 92 };