Skip to main content
If you’re looking for information on how to integrate the SDK, check out ourUniversal Checkout integration guide.

Step 1. Install the SDK

Add the SDK package using your preferred package manager:
BASH

Step 2. Install the iOS dependencies

The iOS part of the SDK installs through CocoaPods. Add these two lines at the top of ios/Podfile:
RUBY
Keep both source lines at the top of your Podfile, in this order. CocoaPods Trunk accepts no new versions from 2 December 2026, so Primer publishes new versions to its own spec repo. CocoaPods takes a pod from the first source that has it, so the Primer line comes first. Once a Podfile has a source line, CocoaPods no longer adds its CDN by itself. The CDN line keeps your other pods installing. Older Primer versions are in both sources, so pod install can print Found multiple specifications for Primer pods. This is expected. CocoaPods uses the Primer spec repo, because it comes first.
After adding the SDK, navigate to the /ios folder and run pod install to ensure all iOS dependencies are properly installed.

Step 3.

Then import Primer in your application
TS

Android library versions

Some payment methods and features, such as Klarna and 3D Secure, need a separate Primer Android library. The integration guide for each one shows the library to add to android/app/build.gradle. Add these libraries without a version:
build.gradle
From React Native SDK 2.49.0, the SDK applies the Primer BOM (io.primer:bom) to your app. The BOM sets each Primer library to the version that matches the Android SDK bundled with the React Native SDK, and overrides any version you set yourself. On earlier React Native SDK versions, check the React Native SDK changelog for the library version that matches your SDK.