Skip to content

Function: settlePayment()

function settlePayment(
   pp, 
   requirement, 
opts): Promise<SettlementResponse>;

Defined in: rine-core/dist/src/x402/facilitator.d.ts:102

POST the signed payload to the facilitator's /settle endpoint. requirement is the payee-owned terms (from reconcilePayment) — never pp.accepted.

Parameters

Parameter Type
pp PaymentPayload
requirement PaymentRequirements
opts FacilitatorCallOptions

Returns

Promise\<SettlementResponse>