Skip to content

Commit

Permalink
Add Aman, URPay and upgrade native libs (#29)
Browse files Browse the repository at this point in the history
Add Aman, URPay and upgrade native libs
  • Loading branch information
KhaledAlramam authored Jul 6, 2022
1 parent 54a3adc commit 91f40d7
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 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.3.10-green)
![Version](https://img.shields.io/badge/React%20Native%20Paytabs-v2.3.11-green)

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

Expand All @@ -12,7 +12,7 @@ Library Support:
# Installation

```sh
$ npm install @paytabs/[email protected].10 --save --force
$ npm install @paytabs/[email protected].11 --save --force
```

### Expo
Expand Down Expand Up @@ -279,7 +279,7 @@ configuration.transactionType = PaymentSDKConstants.TransactionType.sale
* Alternative payment methods

```javascript
AlternativePaymentMethod = {"unionPay":"unionpay", "stcPay":"stcpay", "valu": "valu", "meezaQR": "meezaqr", "omannet": "omannet", "knetCredit": "knetcredit", "knetDebit": "knetdebit", "fawry": "fawry"};
AlternativePaymentMethod = {"unionPay":"unionpay", "stcPay":"stcpay", "valu": "valu", "meezaQR": "meezaqr", "omannet": "omannet", "knetCredit": "knetcredit", "knetDebit": "knetdebit", "fawry": "fawry", "aman": "aman", "urpay": "urpay"};
```

```javascript
Expand Down
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
// original location:
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle

def DEFAULT_COMPILE_SDK_VERSION = 28
def DEFAULT_COMPILE_SDK_VERSION = 31
def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3'
def DEFAULT_MIN_SDK_VERSION = 21
def DEFAULT_TARGET_SDK_VERSION = 28
def DEFAULT_TARGET_SDK_VERSION = 31

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
Expand Down Expand Up @@ -164,6 +164,6 @@ repositories {

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

1 change: 1 addition & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:exported="true"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
compileSdkVersion = 31
targetSdkVersion = 31
}
repositories {
google()
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "eslint ."
},
"dependencies": {
"@paytabs/react-native-paytabs": "^2.3.10",
"@paytabs/react-native-paytabs": "^2.3.11",
"react": "16.13.1",
"react-native": "^0.64.0"
},
Expand Down
2 changes: 1 addition & 1 deletion expo-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"eject": "expo eject"
},
"dependencies": {
"@paytabs/react-native-paytabs": "2.3.7",
"@paytabs/react-native-paytabs": "2.3.11",
"expo": "~41.0.1",
"expo-splash-screen": "~0.10.2",
"expo-status-bar": "~1.0.4",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@paytabs/react-native-paytabs",
"title": "React Native Paytabs",
"version": "2.3.10",
"version": "2.3.11",
"description": "Paytabs React-Native Library",
"main": "index.js",
"typings": "./index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion react-native-paymentsdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Pod::Spec.new do |s|
s.requires_arc = true
s.swift_version = '5.0'
s.dependency "React"
s.dependency "PayTabsSDK", '6.1.11'
s.dependency "PayTabsSDK", '6.1.21'
end

2 changes: 1 addition & 1 deletion src/PaymentSDKConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default class PaymentSDKConstants {
static TokeniseFromat = {"none":"1", "hex32": "2", "alphaNum20": "3", "digit22": "3", "digit16": "5", "alphaNum32": "6"};
static TransactionType = {"sale":"sale", "authorize": "auth"};
static TransactionClass = {"ecom":"ecom", "recurring":"recur"};
static AlternativePaymentMethod = {"unionPay":"unionpay", "stcPay":"stcpay", "valu": "valu", "meezaQR": "meezaqr", "omannet": "omannet", "knetCredit": "knetcredit", "knetDebit": "knetdebit", "fawry": "fawry"};
static AlternativePaymentMethod = {"unionPay":"unionpay", "stcPay":"stcpay", "valu": "valu", "meezaQR": "meezaqr", "omannet": "omannet", "knetCredit": "knetcredit", "knetDebit": "knetdebit", "fawry": "fawry", "aman": "aman", "urpay": "urpay"};
}

0 comments on commit 91f40d7

Please sign in to comment.