DAILY, WEEKLY, BIWEEKLY, MONTHLY, YEARLY). The contract is funded with 12 periods upfront and the recipient claims each period as it becomes due.
List Payments
Get Payment
payment_executions.
Create Payment
status: PENDING until funded.
Body
interval: DAILY, WEEKLY, BIWEEKLY, MONTHLY, YEARLY.
Response
Get Funding Info
wcTransaction to fund 12 intervals upfront.
Confirm Funding
Claim
wcTransaction. Computes how many intervals are claimable since nextPaymentDate. Only the registered recipient can claim.
Response
Confirm Claim
total_paid, payment_count, and next_payment_date. Records execution in payment_executions.
Pause
wcTransaction to pause. Confirm with POST /api/payments/:id/confirm-pause.
Resume
PAUSED. Confirm with POST /api/payments/:id/confirm-resume. Updates next_payment_date to now + intervalSeconds.
Cancel
wcTransaction to cancel — unfunded periods are returned to sender. Confirm with POST /api/payments/:id/confirm-cancel.
