Skip to main content
The official React Native SDK for integrating with the Payracle payment gateway.

Installation

If you’re using the React Native CLI (not Expo), run pod install in your ios/ directory afterwards to link the WebView.

Usage

1. PayracleClient

Use PayracleClient to call the Payracle REST API directly — generating a virtual account or initiating a checkout.
Your secret key must never ship inside a mobile app bundle — anyone can extract it from the compiled binary. Call PayracleClient with a secret key only from your own backend, and have your app fetch the resulting checkout_url from your server. For calling checkout initialization directly from the app, use a public key (pk_live_...) with an X-Business-ID header instead — see Authentication.

2. <PayracleCheckout /> component

To securely process a checkout inside your app, render <PayracleCheckout />. It opens a full-screen modal that loads the secure Payracle checkout flow in a WebView.