Skip to content

Commit

Permalink
updated the readme file
Browse files Browse the repository at this point in the history
  • 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.
68 changes: 68 additions & 0 deletions readme.md
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.

0 comments on commit 0ab0ce5

Please sign in to comment.