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 aPaymentResult object:
Programmatic Control
Use theusePaymentSheet hook to control the payment form programmatically:
Hook Methods
Apple Pay Integration
The Payment Sheet automatically shows Apple Pay when available:- 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:- Opens the 3DS challenge in an iframe
- Handles the authentication flow
- Completes the payment automatically
- Calls
onSuccessoronErrorbased on the result