@autlantic/checkout
v0.1.0
Published
Autlantic Billing mobile Checkout presenter for React Native. Opens hosted checkoutUrl via ASWebAuthenticationSession (iOS) and Chrome Custom Tabs (Android). No API keys.
Maintainers
Readme
Why this SDK
Checkout presenter only (@autlantic/checkout). Your backend creates the session; this module opens the hosted checkoutUrl. iOS: ASWebAuthenticationSession · Android: Chrome Custom Tabs. Classic NativeModules (New Architecture optional). Never embed abk_* keys or webhook secrets in the app. Avoid locked WebViews so WalletConnect can hand off to wallet apps.
Install
Until npm:
npm install github:Autlantic/payments-sdk#sdks/react-native/v0.1.0
# or: npm install /path/to/payments-sdk/sdks/react-native
cd ios && pod installWhen published: npm install @autlantic/checkout. Autolinking picks up Android + the CocoaPods podspec. Requires a custom native build (not Expo Go).
Quick start
import AutlanticCheckout from '@autlantic/checkout';
const result = await AutlanticCheckout.present(checkoutUrl, {
returnUrlScheme: 'myapp',
});
// { status: 'completed' | 'canceled' | 'failed', callbackUrl?: string, error?: string }
if (result.status === 'completed') {
// iOS may include callbackUrl. Android: Custom Tabs opened; handle deep links, then poll YOUR backend.
}Backend contract
- Your server creates a session with
successUrl/cancelUrllikemyapp://billing/success. - App calls
presentwith the returnedcheckoutUrl. - After return, poll your access API. Unlock only after a verified webhook on the server.
Sample merchant backend: examples/mobile-checkout (pnpm example:mobile).
Documentation
| | | |--|--| | React Native Checkout | API reference | | Mobile apps | Mobile integration guide | | iOS · Android | Native Checkout | | Languages | All SDK surfaces | | Security | Secrets & threat model |
Develop
cd sdks/react-native
npm run typescriptMaintainer publish: see ../PUBLISHING.md.
License
MIT · Operated by Autlantic Limited (UK company no. 17422039).
Part of Autlantic Payments SDK.
