Skip to main content
A fully responsive, mobile-optimized checkout sheet. Automatically handles Apple Pay, Google Pay, and card entry with built-in animations and validation.

Overview

The Payment Sheet is designed to sit on top of your existing UI and provide a native checkout experience. It automatically adapts to the user’s device theme (Light/Dark) and handles all payment method logic.

Installation

Basic Usage

Props

Appearance Customization

Payment Result

On success, you receive a PaymentResult object:

Programmatic Control

Use the usePaymentSheet hook to control the payment form programmatically:

Hook Methods

Apple Pay Integration

The Payment Sheet automatically shows Apple Pay when available:
Requirements:
  • Valid Apple Developer account
  • Apple Pay merchant ID registered in Atlas dashboard
  • HTTPS domain with Apple Pay domain verification

3D Secure Handling

The Payment Sheet automatically handles 3D Secure authentication. When a card requires 3DS, the SDK:
  1. Opens the 3DS challenge in an iframe
  2. Handles the authentication flow
  3. Completes the payment automatically
  4. Calls onSuccess or onError based on the result
No additional code is needed for 3DS support.

Error Handling

Error Object