Skip to main content

Hosted Components ๐Ÿงถ

Coming soon

Payment-method agnostic by design โ€” here's how Hosted Components gets you there.

Hosted Components gives you one unified checkout across every supported payment method, so you don't build separate flows for each one โ€” or the checkout UI itself. You get the Payments REST API for backend operations and the JS WebSDK for the checkout experience, working together as a single integration surface instead of two you stitch together yourself.

How does it work?โ€‹

Three parts work together to complete a payment:

  • The Consumer initiates the payment by interacting with your frontend โ€” for example, clicking "Pay Now."
  • The JS WebSDK presents the checkout interface to the Consumer and communicates with the Payments API on their behalf.
  • The Payments API handles the backend operations โ€” creating and managing payment objects, processing the payment, and updating its status.

See it in action ๐Ÿงถโ€‹

From the first click to a confirmed transaction, three participants โ€” the Consumer, the JS WebSDK, and the Payments API โ€” hand the payment off to each other in seven steps, summarised in the diagram below.

Choosing your integration: server and checkoutโ€‹

With the flow in mind, two decisions are left before you build: how you handle payments on your server, and how you present checkout to your customer.

Step 1: Choose your server flowโ€‹

Your server flow covers the backend steps needed to implement the right payment process for your business model. This means integrating with the Payments API to handle payment creation, status updates, and execution.

Options:

  • One-time payment โ€” a single payment for goods or services.
  • Recurring setup with payment โ€” captures payment details during an initial payment for future use.
  • Recurring setup without payment โ€” saves payment details without making an initial payment.

See the Server Flow guide for a detailed walkthrough of each option.

Step 2: Choose your checkout flowโ€‹

Your checkout flow covers the frontend steps needed to implement the right payment process for your checkout. This includes configuring and using the JS WebSDK, which simplifies rendering and managing the checkout experience.

The JS WebSDK is highly configurable, as shown in the image below. Based on your checkout requirements, you can choose the best-suited integration flow. alt text

CautionCaution

The JS WebSDK is being redesigned by the team. This feature is not yet implemented on the Gateway and is subject to change.

Where to go next ๐Ÿงถโ€‹

Coming soonSoon

Once Hosted Components is released, this page will link directly to a working Quickstart and live guides โ€” for now, reach out to your Paystrax contact to get early access or updates on availability.