API Docs
SDK
API ReferenceSdk

Web SDK

Integrate Uprails payments into your frontend application.

Overview

The Uprails Web SDK provides a pre-built, customizable payment form that handles card input, validation, 3D Secure authentication, and payment submission. It simplifies PCI compliance by ensuring sensitive card data never touches your servers.

Integration Options

How It Works

  1. Server-side: Create a payment with confirm: false to get a client_secret
  2. Client-side: Initialize the SDK with your publishable key and client secret
  3. User: Fills in payment details in the secure form
  4. SDK: Handles submission, 3DS authentication, and redirects
  5. Server-side: Receive webhook notification of payment result

The SDK handles PCI compliance for you — card data is sent directly to Uprails servers and never passes through your backend.