Javascript / NPM¶
Methods¶
Fetch a PayString async
getPayStringAsync(
payString: string,
options?: { chain?: string; environment?: string}
): Promise<PaymentInformation | undefined>
Fetch a PayString debounced, result gets returned in the callback
getPayStringDebounce(
callback: (data: PaymentInformation | undefined) => void,
payString: string,
debounceTime = minDebounceTime,
): void
Parse a PayString, throws an error if not parseable by protocol standards
Parse a PayString url, throws an error if not parseable by protocol standards
Splits the PayString to return the prefix and domain, throws an error if not parseable by protocol standards
Converts the PayString to an URL
Converts a PayString URL to a PayString