The lifecycle
- Create. Your backend calls the Payrails API, or you create the link in the Portal. Payrails returns a hosted payment page URL.
- Share. You send the URL to your customer through any channel.
- Pay. The customer opens the link and pays on the Payrails-hosted page.
- Notify. Payrails sends a webhook to your backend with the outcome following the configured workflow.
- Close. The link closes when it is fully paid, expires, or you delete it.
Webhooks are the source of truth for payment state. Do not rely on the
confirmation screen the customer sees, on a redirect, or on an API response
alone. See Track and
reconcile.
One link, one execution, many payments
This is the standard Payrails execution-and-payment model, so reporting and cross-referencing behave the same as for any other execution.
paidAmount on the link accumulates across the payments beneath the execution.
Who is responsible for what
Link statuses
Completed payments remain valid in all of these states, and the link record stays readable.
Failed payments do not change the status. The link stays
enabled and the payer can retry.
State transitions are calculated by Payrails. Webhooks tell you the outcome of each payment, but they do not drive the status themselves.
Next steps
- Create a payment link
- Payment modes—how single and partial payments differ