Validates that a client's payment ID payload matches the expected extension.
The client's payment ID payload
The expected payment ID from the server extension
True if the payment ID matches
const isValid = validatePaymentId(clientPayload, serverExtension.info);if (!isValid) { throw new Error("Payment ID mismatch");} Copy
const isValid = validatePaymentId(clientPayload, serverExtension.info);if (!isValid) { throw new Error("Payment ID mismatch");}
Validates that a client's payment ID payload matches the expected extension.