Optionaldescription: stringOptionalsecret: stringBuild the Authorization: Payment header from an MPP credential (client-side).
Build the Payment-Receipt header for a successful response.
Find a challenge from the requirements that the given methods can handle.
Find the payment method that can handle the given MPP credential.
Convert parsed MPP challenges to unified PaymentRequirements. Returns null if no valid MPP challenges found.
Parse all MPP challenges from a 402 response's WWW-Authenticate headers (client-side). Returns an empty array if no MPP challenges are found.
Parse the Authorization: Payment header from an incoming request (server-side). Returns null if no MPP credential is present.
Parse the Payment-Receipt header from a successful response (client-side).
Build WWW-Authenticate: Payment challenge headers for a 402 response. Returns an array of header values (one per payment method). Use Headers.append() to add multiple WWW-Authenticate headers.