Installation Guide
Step-by-step guide to installing and configuring the React Native ePay SDK.
Installation Guide
Follow these steps to install and configure the @guiddini/react-native-epay package in your React Native project.
1. Install the Package
Run the following command in your project directory:
2. Install Dependencies
The SDK requires react-native-webview for handling payments. Install it using:
or
3. Configure Deep Linking
Since the ePay SDK may redirect users back to your app via a URL, you need to configure deep linking.
a. Set Up Linking in react-navigation
If you are using react-navigation
, configure deep linking as follows:
b. Update AndroidManifest.xml
For Android, modify your AndroidManifest.xml
file:
c. Update Info.plist
for iOS
For iOS, update your Info.plist
file:
4. Wrap Your App with GPayProvider
Wrap your app with the GPayProvider
and pass your API keys.
5. Verify Installation
After installation, ensure the package is correctly set up by running:
If everything is configured correctly, your app should be ready to process payments using the React Native ePay SDK.
Next Steps
- Usage Guide - Learn how to initiate a payment.