Overview
The Elements SDK renders secure iframes on your page for collecting payment details. This gives you full control over your checkout UX while Atlas handles PCI compliance.Installation
Integration Flow
Step 1: Create Session (Server-side)
Step 2: Initialize SDK (Client-side)
Step 3: Mount Payment Form
Step 4: Add Container to Your Page
Appearance Customization
Customize the look and feel to match your brand:Events
| Event | Description |
|---|---|
onSuccess(payment) | Payment completed successfully |
onError(error) | Payment failed or was declined |
onReady() | Form is mounted and ready for input |
onChange(event) | Form field values changed |
onFocus(field) | A field received focus |
onBlur(field) | A field lost focus |