Payments
Each business takes money into its own account. RatesSpot never holds funds.
| Way to pay | Set up in | What happens |
|---|---|---|
| Card, Paystack | Dashboard → Payments: secret key, then paste the webhook address into Paystack | Guests pay on Paystack's page; the booking confirms when Paystack says it's paid |
| Card, Stripe | Dashboard → Payments: add a Stripe webhook endpoint (address and events shown there), then the secret key and that endpoint's signing secret | Guests pay on Stripe Checkout; same flow |
| Bank transfer | Dashboard → Payments: account details and how long to hold | The booking is held; staff record the transfer to confirm it |
| On arrival | Per rate, under Listings & rates | Confirmed straight away; paid at the desk |
Sites ask GET /v1/payment-methods what's available: card and cardProvider (the first switched on), and bank details when transfers are on. Card payments can be paused per provider without losing the keys: no new checkouts, but payments already made are still confirmed and refunds still go out.
Every confirmation re-checks the amount with the provider. Refunds owed under a cancellation policy are sent to the provider automatically and retried if it's down.
Keys are stored encrypted (RATESSPOT_SECRET_KEY on the server) and never returned or logged.
Where customers return after paying
The callbackUrl you pass when starting a card checkout must be on one of the business's return websites (dashboard: Payments → Websites your customers return to after paying, or PATCH /v1/business with returnSites), on a RatesSpot page (the hosted booking page), or, for test businesses, on localhost. Anything else is refused, so nobody can use a business's public key to send its customers to a site of their own after paying. Only the site part counts: listing https://www.example.com allows any page on it.
Webhooks are separate: register any public HTTPS address under webhook endpoints to hear about every payment.