Pular para o conteúdo

React Native SDK overview

react-native-lina-pay-sdk brings the same Open Finance payment flow as the Web SDK to a React Native app: list participants, open a payment consent, and finish the payment — plus device enrollment with FIDO2/Passkeys for redirectless, biometric-authorized payments.

Requirements

RequirementVersion
React Native≥ 0.83.0
Node≥ 20

Install

npm install react-native-lina-pay-sdk

Configure the environment

The SDK is pointed at the homologation (HML) environment by default. Call configure once at app startup to target production:

import LinaPaySdk from 'react-native-lina-pay-sdk'

LinaPaySdk.configure({
iamBaseUrl: 'https://iam.prod.linaob.com.br',
apiBaseUrl: 'https://embedded-payment-manager.prod.linaob.com.br',
})

Default (HML) URLs, shown for reference:

{
iamBaseUrl: 'https://iam.hml.linaob.com.br',
apiBaseUrl: 'https://embedded-payment-manager.hml.linaob.com.br',
}

Authentication

Authentication is automatic: the SDK exchanges your credentials for an OAuth2 access token, caches it, and refreshes it about 5 minutes before it expires. You never call an auth endpoint directly.

What it covers

Next steps

  • Payment flow — the redirect-based journey, step by step.
  • Enrollments — link a device for redirectless payments.