1.2.0 • Published 3 years ago

react-native-bkmexpress v1.2.0

Weekly downloads
78
License
-
Repository
github
Last release
3 years ago

React Native BKMExpress SDK

React Native BKMExpress, Bkm Express ödeme sağlayıcısı kullanmak için yaratılmış sdk'dır. BKM Express native sdk'ları baz alınarak geliştirilme yapılmıştır.

Bknz Android: https://github.com/BKMExpress/BEXFlowSDKAndroid IOS: https://github.com/BKMExpress/iOSBKMExpressFlowSDK

Başlarken

Kurulum

yarn add react-native-bkmexpress

veya

npm install --save react-native-bkmexpress

Android

Linkleme İşlemi

  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import com.reactlibrary.RNBkmexpressPackage; to the imports at the top of the file
  • Add new RNBkmexpressPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-bkmexpress'
    project(':react-native-bkmexpress').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-bkmexpress/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
       compile project(':react-native-bkmexpress')
    	```
    Ayrıca `android/build.gradle` altına kullanacağınız sdk versiyonunun adresini, kullanıcı adınızı ve parolanızı vermeniz gerekiyor:
allprojects {
    repositories {
        ...
        maven {
            url 'sdkpath'
            credentials {
                username = "your_username"
                password = "your_password"
            }
        }
        ...
    }
}

iOS

Kütüphaneyi projene eklemek için react-native link kullanmalısın.

react-native link react-native-bkmexpress

ve

Projene pod ile BKMExpressFlowSDK 'yı kurmalısın.

pod 'BKMExpressFlowSDK', '1.0.6'

Kullanım

import RNBkmexpress from 'react-native-bkmexpress';

RNBkmexpress.kkBexStart(paymentIssueId, paymentIssuePath, paymentIssueToken, Environment, (error, result) => {
  // result -> 0 Başarılı || 1 İptal || 2 Başarısız
  // error -> SDK içerisinden dönen hata mesajı
  if (result === '0') {
    // Başarılı
  } else if (result === '2') {
    // Başarısız
  } else {
    // Kullanıcı iptali
  }
});

Parametre Tablosu

Değer AdıDeğer TipiDeğerin Amacı
paymentIssueIdStringYapılacak olan ödemenin işlem numarası
paymentIssuePathStringYapılacak olan ödemenin işlem pathi
paymentIssueTokenstyleYapılacak olan ödemenin işlem tokenı
EnvironmentStringÇalıştırma ortamı - PREPORD ortamı için "PREPROD", PROD ortamı için "PROD" giriniz
errorStringDönen hata mesajı
resultStringDönen sonuç (0 Başarılı - 1 İptal - 2 Başarısız)
1.2.0

3 years ago

1.1.9

3 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago