Skip to content

Function: sendReceipt()

function sendReceipt(params): Promise<MessageRead>;

Defined in: rine-core/dist/src/x402/payee-receipt.d.ts:34

Build the x402_receipt message from a settlement body, HPKE-encrypt it to the PAYER (the payment's original sender), and reply in-thread as the payee. The payee holds no payer wallet — only its own E2EE keys to encrypt the receipt. The settlement's network is the facilitator's verbatim slug, echoed through unchanged. emitMarker toggles the cleartext {status, rail} marker.

Parameters

Parameter Type
params { client: HttpClient; configDir: string; emitMarker: boolean; messageId: string; payeeAgentId: string; payerAgentId: string; receiptBody: SettlementResponse; }
params.client HttpClient
params.configDir string
params.emitMarker boolean
params.messageId string
params.payeeAgentId string
params.payerAgentId string
params.receiptBody SettlementResponse

Returns

Promise\<MessageRead>