Pharos Docs
Collections

Collections

Choose how your business will send buyers to Pharos-hosted checkout and collect payment.

Collections covers inbound selling and payment collection. It is separate from Payments, which covers outbound payments to recipients and suppliers.

Both collection models end in the same Pharos-hosted checkout. A Payment Link is a reusable offer managed by an operator. A Checkout Session is one concrete cart created by your backend. Once a session exists, both models use the same checkout, invoice, subscription, gateway, payment, and webhook pipeline.

Find your use case

Use Payment LinksCart Checkout
Best forA fixed or reusable offer published by an operatorA cart whose contents are decided by your application
SetupDashboard first; API access is optionalBackend integration with the /api/v1 API
CatalogUses configured Products and PricesUses catalog priceId values or inline priceData
Public URLReusable /checkout/:slug URLOne /checkout/session/:id URL per cart
Cart changesEdit the Payment Link for future sessionsMutate an open session with Idempotency-Key and If-Match
Buyer experiencePharos-hosted checkoutThe same Pharos-hosted checkout
FulfillmentWait for the signed purchase_succeeded webhookWait for the signed purchase_succeeded webhook

Choose Use Payment Links when an operator can define the offer in Dashboard and publish the same URL on a website, campaign, message, or QR code. It is the fastest path when the offer is reusable and your application does not need to construct the cart at runtime.

Cart Checkout

Choose Cart Checkout when your backend owns the cart, needs inline pricing, or must add, update, or remove items before redirecting the buyer. Your API key remains on your server; the browser only receives the hosted checkout URL.

Before you start

For either model:

  1. Configure at least one payment connection and a valid route for the countries and currencies you intend to support.
  2. Decide whether you are collecting a one-time payment, starting a subscription, or using a trial or mixed cart.
  3. Configure a webhook endpoint before going live.
  4. Treat the buyer redirect as navigation only. Fulfill only after verifying purchase_succeeded.

Payment Links also require configured Products and Prices. Cart Checkout may use the catalog or snapshot inline priceData without creating catalog records.

Shared runtime after session creation

  1. Pharos persists a Checkout Session. A Payment Link is snapshotted when its hosted flow initializes; an API integration creates the session directly.
  2. The buyer completes hosted checkout. Pharos collects the required customer and billing information and offers only payment routes valid for the session.
  3. Pharos prepares the commercial records. The shared pipeline calculates the final quote and creates the applicable customer, invoice, subscription, payment, and attempt records.
  4. The payment provider responds. The outcome may be immediate, require a redirect or action, or remain processing for an asynchronous method.
  5. The session lifecycle advances. Session status describes the buyer flow; paymentStatus describes the money movement.
  6. Your backend receives signed events. Use Collections Webhooks to reconcile the result and fulfill only after purchase_succeeded.

Continue

On this page