Skip to content

Commit

Permalink
fixed missing PaymentSDKConstants.js issue and removed unused gradle …
Browse files Browse the repository at this point in the history
…repos
  • Loading branch information
MuhamedAdly committed Jun 24, 2021
1 parent 8798389 commit e6cd7c2
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 37 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# react-native-paytabs
![Version](https://img.shields.io/badge/React%20Native%20Paytabs-v2.2.0-green)
![Version](https://img.shields.io/badge/React%20Native%20Paytabs-v2.2.1-green)

React native paytabs library is a wrapper for the native PayTabs Android and iOS SDKs, It helps you integrate with PayTabs payment gateway.

Expand All @@ -11,7 +11,7 @@ Library Support:

# Installation

`$ npm install @paytabs/[email protected].0 --save`
`$ npm install @paytabs/[email protected].1 --save --force`

### Follow the below steps to complete the installation

Expand All @@ -21,8 +21,8 @@ Library Support:
```
allprojects {
repositories {
...
maven { url "http://pay.cards/maven" }
maven { url 'https://jitpack.io' }
}
}
```
Expand All @@ -31,6 +31,7 @@ Library Support:

```
android {
...
packagingOptions {
pickFirst '**/*.so'
}
Expand Down Expand Up @@ -60,7 +61,7 @@ import {RNPaymentSDKLibrary, PaymentSDKConfiguration, PaymentSDKBillingDetails,
```javascript
let billingDetails = new PaymentSDKBillingDetails(name= "John Smith",
email= "[email protected]",
phone= "+ 2011111111",
phone= "+2011111111",
addressLine= "address line",
city= "Dubai",
state= "Dubai",
Expand All @@ -69,7 +70,7 @@ let billingDetails = new PaymentSDKBillingDetails(name= "John Smith",

let shippingDetails = new PaymentSDKShippingDetails(name= "John Smith",
email= "[email protected]",
phone= "+ 2011111111",
phone= "+2011111111",
addressLine= "address line",
city= "Dubai",
state= "Dubai",
Expand Down
6 changes: 1 addition & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,11 @@ afterEvaluate { project ->
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
maven {
url "https://dl.bintray.com/paytabsandroidsdk/paytabs-sdk"
}
maven { url "http://pay.cards/maven" }
}

dependencies {
implementation 'com.facebook.react:react-native:+'
implementation 'com.paytabs:payment-sdk:6.1.0'
implementation 'com.paytabs:payment-sdk:6.1.2'
}

3 changes: 0 additions & 3 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,5 @@ allprojects {
google()
jcenter()
maven { url "http://pay.cards/maven" }
maven { url "https://dl.bintray.com/paytabsandroidsdk/paytabs-sdk" }

maven { url 'https://www.jitpack.io' }
}
}
4 changes: 2 additions & 2 deletions example/ios/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 17 additions & 14 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"react": "16.13.1",
"react-native": "^0.64.0",
"react-native-paymentsdk": "file:../"
"@paytabs/react-native-paytabs": "file:../"
},
"devDependencies": {
"@babel/core": "^7.11.6",
Expand Down
10 changes: 5 additions & 5 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"resolved" "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.13.12.tgz"
"version" "7.13.12"

"@babel/core@*", "@babel/core@^7.0.0", "@babel/core@^7.0.0-0", "@babel/core@^7.1.0", "@babel/core@^7.1.6", "@babel/core@^7.11.6", "@babel/core@^7.13.0", "@babel/core@^7.4.0-0", "@babel/core@^7.7.5":
"@babel/core@^7.0.0", "@babel/core@^7.0.0-0", "@babel/core@^7.1.0", "@babel/core@^7.1.6", "@babel/core@^7.11.6", "@babel/core@^7.13.0", "@babel/core@^7.4.0-0", "@babel/core@^7.7.5":
"integrity" "sha512-wZso/vyF4ki0l0znlgM4inxbdrUvCb+cVz8grxDq+6C9k6qbqoIJteQOKicaKjCipU3ISV+XedCqpL2RJJVehA=="
"resolved" "https://registry.npmjs.org/@babel/core/-/core-7.13.14.tgz"
"version" "7.13.14"
Expand Down Expand Up @@ -1227,6 +1227,10 @@
"@types/yargs" "^15.0.0"
"chalk" "^4.0.0"

"@paytabs/react-native-paytabs@file:../":
"resolved" "file:.."
"version" "2.2.1"

"@react-native-community/cli-debugger-ui@^5.0.1-alpha.1":
"integrity" "sha512-o6msDywXU7q0dPKhCTo8IrpmJ+7o+kVghyHlrAndnb30p6vnm4pID5Yi7lHXGfs6bQXorKUWX8oD5xYwWkN8qw=="
"resolved" "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-5.0.1-alpha.1.tgz"
Expand Down Expand Up @@ -5605,10 +5609,6 @@
"jscodeshift" "^0.11.0"
"nullthrows" "^1.1.1"

"react-native-paymentsdk@file:../":
"resolved" "file:.."
"version" "2.0.3"

"react-native@^0.64.0", "react-native@>=0.64.0-rc.0 || 0.0.0-*":
"integrity" "sha512-8dhSHBthgGwAjU+OjqUEA49229ThPMQH7URH0u8L0xoQFCnZO2sZ9Wc6KcbxI0x9KSmjCMFFZqRe3w3QsRv64g=="
"resolved" "https://registry.npmjs.org/react-native/-/react-native-0.64.0.tgz"
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@paytabs/react-native-paytabs",
"title": "React Native Paytabs",
"version": "2.2.0",
"description": "Paytabs is a payment gateway",
"version": "2.2.1",
"description": "Paytabs React-Native Library",
"main": "index.js",
"files": [
"README.md",
Expand All @@ -12,6 +12,7 @@
"PaymentSDKBillingDetails.js",
"PaymentSDKShippingDetails.js",
"PaymentSDKTheme.js",
"PaymentSDKConstants.js",
"ios",
"react-native-paymentsdk.podspec"
],
Expand Down

0 comments on commit e6cd7c2

Please sign in to comment.