MerchantValidationEvent: MerchantValidationEvent() constructor
Deprecated
Avoid using this feature in new projects. This feature may be a candidate for removal from web standards or browsers.>
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
The MerchantValidationEvent() constructor creates a new MerchantValidationEvent object. You should not have to create these events yourself; instead, just handle the merchantvalidation event.
Syntax
new MerchantValidationEvent(type)
new MerchantValidationEvent(type, options)
Parameters
type-
A string with the name of the event. It is case-sensitive and browsers always set it to
merchantvalidation. optionsOptional-
An object that, in addition of the properties defined in
Event(), can have the following properties:methodNameOptional-
A string containing the payment method identifier for the payment handler being used. This is an empty string by default.
validationURLOptional-
The URL from which to retrieve payment handler specific verification information used to validate the merchant. This is an empty string by default.
Return value
A new MerchantValidationEvent object providing the information
that needs to be delivered to the client-side code to present to the user agent by calling complete().
Exceptions
TypeError-
Thrown if the string specified as
validationURLcould not be parsed as a URL. RangeError-
Thrown if the specified
methodNamedoes not correspond to a known and supported merchant or is not a well-formed standard payment method identifier.
Specifications
This feature is deprecated and is not part of any specification.