-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chathura
authored and
Chathura
committed
Jul 1, 2024
1 parent
7ce6b25
commit 0ab0ce5
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
|
||
# Komoju Payment Gateway SDK for React Native | ||
|
||
**Welcome to the Komoju Payment Gateway SDK!** This SDK empowers you to seamlessly integrate secure payment processing into your React Native applications using the powerful Typescript language. | ||
|
||
- *This will guide you to setup the sdk on local environment. In near future you will be able to install it from the npm registry.* | ||
|
||
## Getting Started | ||
First needs to set up the React Native on local environment. | ||
[React Native Offical Guide](https://reactnative.dev/docs/environment-setup) | ||
|
||
|
||
|
||
|
||
## Run Locally | ||
|
||
Clone the project | ||
|
||
```bash | ||
git clone https://github.com/degica/mobile-sdk_react-native.git | ||
``` | ||
|
||
Go to the project directory | ||
|
||
```bash | ||
cd mobile-sdk_react-native | ||
``` | ||
|
||
Install dependencies on SDK | ||
|
||
```bash | ||
cd payment_sdk | ||
yarn install | ||
``` | ||
|
||
Install dependencies on Example App | ||
|
||
```bash | ||
cd example | ||
yarn install | ||
``` | ||
|
||
Adding the evironmental variables on the example app | ||
|
||
```bash | ||
cd example | ||
touch .env | ||
``` | ||
|
||
There are two environment variables need to add to the .env | ||
- *SECRET_KEY=<key should get from the komoju dashboard>* | ||
- *PUBLIC_KEY=<key should get from the komoju dashboard>* | ||
|
||
Start the Example App | ||
|
||
Based on the platform | ||
use either | ||
```bash | ||
cd example | ||
yarn android | ||
``` | ||
on android | ||
or | ||
```bash | ||
cd example | ||
yarn ios | ||
``` | ||
on the IOS. |