@coinflowlabs/react-native is a React Native SDK that embeds Coinflow’s card tokenization form directly into iOS and Android apps from a single TypeScript codebase. The user enters their card inside your app, the SDK returns a payment token, and your backend charges the card via the standard Coinflow checkout API.
@coinflowlabs/react-native4.13.0minSdk 24+react-native-webview >=11.16.0For Expo projects, also run:
iOS additionally requires running pod install from the ios/ directory after install (skip if you use Expo’s prebuild flow).
Render CoinflowCardForm and hold a ref you’ll use to trigger tokenization.
your-merchant-id is an example placeholder. Use your actual merchant ID from the merchant dashboard, or contact the Coinflow integrations team. Typically read from your app’s config layer, not hard-coded.
tokenize() returns a CardFormTokenResponse:
token: string — payment token to send to your backendexpMonth?: string, expYear?: string — populated only for variants that collect expirySend the token to your server and call Coinflow’s checkout API to charge it. See the Card Checkout endpoint for the full request shape.
MerchantTheme styles the rendered form. All fields optional.