Optionaldescription: stringBuild the PAYMENT-SIGNATURE header from a signed payment payload (client-side).
Build error response headers (402 with error info in PAYMENT-RESPONSE).
Build the PAYMENT-RESPONSE header for a successful settlement response.
Find a matching payment accept option from the requirements that the given methods can handle.
Find the payment method that can handle the given X402 credential.
Parse the PAYMENT-REQUIRED header from a 402 response (client-side). Returns null if no X402 challenge is present.
Parse the PAYMENT-SIGNATURE header from an incoming request (server-side). Returns null if no X402 credential is present.
Parse the PAYMENT-RESPONSE header from a 200 response (client-side).
Build the PAYMENT-REQUIRED header value for a 402 response. Returns headers to be added to the response.