Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# react-native-isw-mobile-sdk
# isw-mobile-payment-sdk-react

This library aids in processing payment through the following channels
- [x] Card
Expand All @@ -17,19 +17,19 @@ There are three steps you would have to complete to set up the SDK and perform t

### Installation

`$ npm install react-native-isw-mobile-sdk --save`
`$ npm install isw-mobile-payment-sdk-react --save`

### Mostly automatic installation

`$ react-native link react-native-isw-mobile-sdk`
`$ react-native link isw-mobile-payment-sdk-react`

### Manual installation


#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-isw-mobile-sdk` and add `IswMobileSdk.xcodeproj`
2. Go to `node_modules` ➜ `isw-mobile-payment-sdk-react` and add `IswMobileSdk.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libIswMobileSdk.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

Expand All @@ -40,12 +40,12 @@ There are three steps you would have to complete to set up the SDK and perform t
- Add `new IswMobileSdkPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
```
include ':react-native-isw-mobile-sdk'
project(':react-native-isw-mobile-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-isw-mobile-sdk/android')
include ':isw-mobile-payment-sdk-react'
project(':isw-mobile-payment-sdk-react').projectDir = new File(rootProject.projectDir, '../node_modules/isw-mobile-payment-sdk-react/android')
```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```
compile project(':react-native-isw-mobile-sdk')
compile project(':isw-mobile-payment-sdk-react')
```
4. Add the following to you `android/build.gralde` repositories block
```
Expand All @@ -58,7 +58,7 @@ There are three steps you would have to complete to set up the SDK and perform t
You would also need to configure the project with your merchant credentials.

```javascript
import IswMobileSdk, { IswPaymentInfo, Environment, IswSdkConfig } from 'react-native-isw-mobile-sdk';
import IswMobileSdk, { IswPaymentInfo, Environment, IswSdkConfig } from 'isw-mobile-payment-sdk-react';


// get your credentials
Expand Down