ack_create_payment_request
Generate a signed JWT payment request token for HTTP 402 responses, combining creation and signing in one step. Define payment options, signer key, and expiration to request payment securely.
Instructions
Create a signed payment request token (JWT) for use in HTTP 402 responses. Unlike receipts, this creates AND signs in one step. Verify the result with ack_verify_payment_request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signerDid | Yes | DID of the payment requester (must match the JWK) | |
| signerJwk | Yes | JWK JSON string containing the signer's private key (from ack_generate_keypair or any valid private key JWK) | |
| description | No | Human-readable description of what the payment is for | |
| paymentOptions | Yes | Array of payment options (amount, currency, recipient, network) | |
| expiresInSeconds | No | Seconds until the payment request expires |