PaymentMethodIdentifier Class

The payment method identifiers (https://w3c.github.io/payment-method-id/): a standardized identifier (e.g. secure-payment-confirmation) or an https: URL without credentials.

public static class PaymentMethodIdentifier

Methods

NameDescription
IsUrlBased(string)Returns whether a string is a URL-based payment method identifier: a valid identifier that the basic URL parser parses.
IsValid(string)Returns whether a string is a valid payment method identifier (https://w3c.github.io/payment-method-id/#dfn-validate-a-payment-method-identifier): a string that the basic URL parser parses is valid when it is an https: URL without username nor password; another string is valid when it follows the syntax of the standardized payment method identifiers (lower case ASCII letters and digits, in parts separated by - that start with a letter).

IsUrlBased(string)

PaymentMethodIdentifier.cs

Returns whether a string is a URL-based payment method identifier: a valid identifier that the basic URL parser parses.

public static bool IsUrlBased(string identifier)

Parameters

identifier string
The identifier.

Returns

bool

Returns whether a string is a valid payment method identifier (https://w3c.github.io/payment-method-id/#dfn-validate-a-payment-method-identifier): a string that the basic URL parser parses is valid when it is an https: URL without username nor password; another string is valid when it follows the syntax of the standardized payment method identifiers (lower case ASCII letters and digits, in parts separated by - that start with a letter).

public static bool IsValid(string identifier)

Parameters

identifier string
The identifier.

Returns

bool