API Reference

Frontend-Only Checkout Flow

Launch a Paystrator checkout with zero backend code. This flow securely initializes a session (CSRF), creates a checkout session, and redirects customers to The Hosted Checkout Page - all from your page.


When to use

  • You want the fastest path to accept payments.
  • You don’t (yet) have a server or SDK integration.
  • You’re fine with customers completing payment on a hosted page.

How it works (at a glance)

  1. Your page loads a tiny client script.
  2. The script initializes CSRF (cookies/credentials).
  3. On Pay, it creates a checkout using your inputs (amount, description, optional payment type).
  4. The browser redirects to the hosted checkout.

If type isn’t specified, the hosted page shows all available methods for your account; if only one is available, it’s auto-selected.

Choose your path

  • Checkout Form – you control the inputs (amount, description, type) with a small HTML form.
  • Checkout Button – one line of HTML renders a “Pay Now” button where the script sits.