SecurePaymentConfirmationChoice Enum

The choice of the user in the transaction dialog of Secure Payment Confirmation (https://w3c.github.io/secure-payment-confirmation/#sctn-transaction-confirmation-outcome).

public enum SecurePaymentConfirmationChoice

Fields

NameValueDescription
Decline0The user does not want to proceed with the payment: the promise of show() is rejected with an AbortError.
Accept1The user proceeds with the payment and authenticates with a credential: the promise of show() is resolved with a response whose details are the PublicKeyCredential of the authentication.
AuthenticateAnotherWay2The user proceeds with the payment but does not want to (or cannot) use a credential: the promise of show() is rejected with a NotAllowedError.
OptOut3The user opts out of the process for the relying party: the promise of show() is rejected with an OptOutError. The choice is only possible when SecurePaymentConfirmationPrompt.ShowOptOut is set, otherwise it is a SecurePaymentConfirmationChoice.Decline.