Skip to content

submitPaymentIntent

Emits a structured Payment Intent according to mode. It does not call any xerpaai-go settlement endpoint — real on-chain settlement runs through OnchainosGateway at the call site.

ts
submitPaymentIntent(pi: PaymentIntent, opts: TransportOptions): Promise<SubmitResult>
ParamTypeDescription
piPaymentIntenta validated intent
opts.modePaymentIntentModelive | dry-run | mock

Behavior by mode

ModeReturned statusSide effect
mock"mock"echoes pi.id
live"emitted"
dry-run"dry_run"
ts
interface TransportOptions {
  mode: PaymentIntentMode;
}

Proprietary software. All rights reserved.