executions/collection from your server.
API Reference: Create checkout source · Payment link
Hosted vs API-embedded
Path A — One-call checkout source
Create everything in a single request withmode: "HOSTED":
Redirect the customer to
url. They choose mobile money or card on the hosted page and complete payment there.
Path B — Invoice or order + payment link
For document-first flows where you control line items and publish timing:{ "url": "https://..." } — share or redirect to this URL.
Mobile money on hosted checkout
On the hosted page, the customer:- Selects their mobile money operator (or Dollr infers it from phone)
- Enters their wallet phone number
- Approves the USSD / in-app prompt from their carrier
predictions/mmo-provider-info, payment-accounts/create, or executions/collection for hosted flows.
For API-embedded MoMo collection (your own UI), see Quick Start and Predictions.
Cards on hosted checkout
On the hosted page, the customer:- Selects card as the payment method
- Enters card details on Dollr’s secure card form (Stripe-powered)
- Completes 3D Secure if required
client_secret, or server-side card execution for hosted flows.
For API-embedded card collection (Stripe Elements in your app), see Collect with card.
Redirect URLs
Setsuccess_url and cancel_url when creating a hosted checkout source:
success_url— customer lands here after a successful paymentcancel_url— customer lands here if they abandon checkout
GET /v1/status/source to confirm payment before fulfilling the order:
Receipt link
After payment, fetch a receipt URL for the customer:Monitor payment status
Fulfillment security
Correct pattern:- Customer completes payment on Dollr hosted page
- Customer redirected to your
success_url(optional UX) - Your server calls
GET /v1/status/source?source_type=INVOICE&source_id={id} - Fulfill only when
status === "PAID"
url vs hosted_path_or_token
Expiration
Hosted checkout sources may includeexpires_at. After expiry, generate a new checkout source or re-fetch the payment link if the source is still ACTIVE.
Related
- Collect via checkout — API shortcut without manual party setup
- Payment links · Checkouts
- Choose your integration
- Quick Start — API-embedded collection
