Interface IX402Facilitator
Verifies and settles an x402 PAYMENT-SIGNATURE on the XRP Ledger.
Namespace: Xrpl.X402.AspNetCore
Assembly: Xrpl.X402.AspNetCore.dll
Syntax
public interface IX402Facilitator
Methods
| Edit this page View SourceVerifyAndSettleAsync(PaymentSignatureEnvelope, CancellationToken)
Verify the signed payment matches the accepted requirement and settle it on-ledger.
Declaration
Task<PaymentResponseEnvelope> VerifyAndSettleAsync(PaymentSignatureEnvelope envelope, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| PaymentSignatureEnvelope | envelope | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<PaymentResponseEnvelope> |
Remarks
Accepted is what the payment is checked against, so it must
be the server's own requirement, not the copy the client sent. RequirePayment replaces it
before calling; a caller that invokes a facilitator directly must do the same.