ack_create_payment_receipt
Create an unsigned payment receipt as a W3C Verifiable Credential from a fulfilled payment request and payment option, then sign it with the issuer's DID and JWK to produce a verifiable JWT.
Instructions
Create an unsigned payment receipt as a W3C Verifiable Credential. The output is unsigned JSON — you must pass it to ack_sign_credential with the receipt issuer's JWK and DID to get a signed JWT, then verify it with ack_verify_payment_receipt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | No | Optional metadata about the payment | |
| payerDid | Yes | DID of the entity that made the payment | |
| issuerDid | Yes | DID of the receipt issuer (typically the payment receiver) | |
| paymentOptionId | Yes | ID of the payment option that was used | |
| paymentRequestToken | Yes | The original payment request JWT that was fulfilled |