Code Monkey home page Code Monkey logo

react-native-paystack's Introduction

React Native Wrapper for Paystack Mobile SDKs

for Android & iOS by Arttitude 360

Index

  1. Description
  2. Installation
  3. Usage
  4. Credits
  5. Changelog
  6. License

1. Description

This React Native module provides a wrapper to add Paystack Payments to your React Native application using the Paystack Android Mobile SDK and the Paystack iOS Mobile SDK libraries.

PS: If you are using this library in production, please give the repo a star - I am not being vain and have no interest in the vanity metric, just trying to figure out if it is still worth the time or effort spent supporting the library. Cheers!

2. Installation

You can pull in react-native-paystack via npm:

npm install react-native-paystack --save

OR

yarn add react-native-paystack

Versioning

  • For RN >=0.40 only;
  • Breaking Change Alert for v3.2.0+. Looking for the docs for the 3.1.* version of this library? Check here!

Configuration

Post-Install Steps (iOS)

1) Auto Linking & Cocoapods Integration (React Native 0.59 and lower)
  • If you do not have CocoaPods already installed on your machine, run gem install cocoapods to set it up the first time. (Hint: Go grab a cup of coffee!)
  • If you are not using Cocoapods in your project already, run cd ios && pod init at the root directory of your project. This would create a Podfile in your ios directory.
  • Run react-native link react-native-paystack at the root directory of your project and ensure you edit your Podfile to look like the sample below (remove all the targets you are not building for, such as Tests and tvOS):
# platform :ios, '9.0'

target '_YOUR_PROJECT_TARGET_' do

  # Pods for _YOUR_PROJECT_TARGET_
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge',
    'DevSupport',
    'RCTText',
    'RCTImage',
    'RCTNetwork',
    'RCTWebSocket',
    'RCTSettings',
    'RCTAnimation',
    'RCTLinkingIOS',
    # Add any other subspecs you want to use in your project
    # Remove any subspecs you don't want to use in your project
  ]

  pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
  # This should already be auto-added for you, if not add the line below
  pod 'react-native-paystack', :path => '../node_modules/react-native-paystack'

end
  • Replace all references to YOUR_PROJECT_TARGET with your project target (it's the same as project name by default).
  • By now, you should be all set to install the packages from your Podfile. Run pod install from your ios directory.
  • Close Xcode, and then open (double-click) your project's .xcworkspace file to launch Xcode. From this time onwards, you must use the .xcworkspace file to open the project. Or just use the react-native run-ios command as usual to run your app in the simulator.
2) Auto Linking & Cocoapods Integration (React Native 0.60 and higher)

Since React Native 0.60 and higher, autolinking makes the installation process simpler.

cd ios
pod install
  • Close Xcode, and then open (double-click) your project's .xcworkspace file to launch Xcode. From this time onwards, you must use the .xcworkspace file to open the project. Or just use the react-native run-ios command as usual to run your app in the simulator.

Manual Config (iOS)

  • The following steps are optional, should be taken if you have not run react-native link react-native-paystack already.
  • In XCode's "Project navigator", right click on project name folder ➜ Add Files to <...>. Ensure Copy items if needed and Create groups are checked
  • Go to node_modulesreact-native-paystack/ios ➜ add RNPaystack.xcodeproj.
  • Click on your main project file (the one that represents the .xcodeproj for your project) select Build Phases and drag the static library, libRNPaystack.a from the Products folder inside RNPaystack.xcodeproj to Link Binary With Libraries. See the react-native docs for more details.

Autolinking on Android (React Native 0.59 and lower)

  • Run react-native link react-native-paystack at the root directory of your project.

Autolinking on Android (React Native 0.60 and higher)

Since React Native 0.60 and higher, autolinking makes the installation process simpler. Nothing more to do here (Gradle has you all set to go) - just head over to usage!

Manual Config (Android)

  • The following steps are optional, should be taken if you have not run react-native link react-native-paystack already.
  • Add the following in your android/settings.gradle file:
include ':react-native-paystack'
project(':react-native-paystack').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-paystack/android')
  • Add the following in your android/app/build.grade file:
dependencies {
    ...
    compile project(':react-native-paystack')
}
  • Add the following in your ...MainApplication.java file:
import com.arttitude360.reactnative.rnpaystack.RNPaystackPackage;

@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      ...
      new RNPaystackPackage() //<-- Add line
  );
}

More Config (Only applicable to Android using react-native-paystack v3.1.4+ & RN less than 0.57.0)

  • Update Gradle plugin to v3.0.0+ for your app, follow the following steps if you are not sure how:
  • To avoid build issues, enable Aapt2 for your project by adding android.enableAapt2=true to your android/gradle.properties file.
  • If you are using RN with a version lower than 0.57.0, it is important you replace your node-modules/react-native/react.gradle file with this version @ commit da6a5e0 to avoid further build issues when assembling a release version of your app.

3. Usage

Initialize Library

Somewhere high up in your project and way before calling any other method exposed by this library, your index file or equivalent is a good spot, ensure you initialize the library with your public key as follos:

import RNPaystack from 'react-native-paystack';

RNPaystack.init({ publicKey: 'YOUR_PUBLIC_KEY_HERE' });

Charging a Card with Access Code (iOS & Android)

It's a cinch to charge a card token using the react-native-paystack module. This is the recommended or the most-preferred workflow favored by the folks at Paystack. Initiate a new transaction on your server side using the appropriate Paystack endpoint - obtain an access_code and complete the charge on your mobile application. Pls note, the SDK assumes you are responsible for building the card form/UI.

	RNPaystack.chargeCardWithAccessCode(cardParams);

To be more elaborate, cardParams is a Javascript Object representing the card to be charged and RNPaystack.chargeCardWithAccessCode() returns a Javascript Promise like:

import RNPaystack from 'react-native-paystack';

chargeCard() {

	RNPaystack.chargeCardWithAccessCode({
      cardNumber: '4123450131001381', 
      expiryMonth: '10', 
      expiryYear: '17', 
      cvc: '883',
      accessCode: '2p3j42th639duy4'
    })
	.then(response => {
	  console.log(response); // do stuff with the token
	})
	.catch(error => {
	  console.log(error); // error is a javascript Error object
	  console.log(error.message);
	  console.log(error.code);
	})
	
}

Request Signature

Argument Type Description
cardNumber string the card number as a String without any seperator e.g 5555555555554444
expiryMonth string the card expiry month as a double-digit ranging from 1-12 e.g 10 (October)
expiryYear string the card expiry year as a double-digit e.g 15
cvc string the card 3/4 digit security code as a String e.g 123
accessCode string the access_code obtained for the charge

Response Object

An object of the form is returned from a successful token request

{
	reference: "trx_1k2o600w"
}

Charging a Card (iOS & Android)

Using the react-native-paystack module, you can start and complete a transaction with the mobile Paystack Android and iOS SDKs. With this option, you pass both your charge and card properties to the SDK - with this worklow, you initiate and complete a transaction on your mobile app. Note that as with charging with an access_code, the SDK assumes you are responsible for building the card form/UI.

RNPaystack.chargeCard(chargeParams);

To be more elaborate, chargeParams is a Javascript Object representing the parameters of the charge to be initiated and RNPaystack.chargeCard() returns a Javascript Promise like:

import RNPaystack from 'react-native-paystack';

chargeCard() {

	RNPaystack.chargeCard({
      cardNumber: '4123450131001381', 
      expiryMonth: '10', 
      expiryYear: '17', 
      cvc: '883',
      email: '[email protected]',
      amountInKobo: 150000,
      subAccount: 'ACCT_pz61jjjsslnx1d9',
    })
	.then(response => {
	  console.log(response); // card charged successfully, get reference here
	})
	.catch(error => {
	  console.log(error); // error is a javascript Error object
	  console.log(error.message);
	  console.log(error.code);
	})
	
}

Request Signature (chargeParams)

Argument Type Description
cardNumber string the card number as a String without any seperator e.g 5555555555554444
expiryMonth string the card expiry month as a double-digit ranging from 1-12 e.g 10 (October)
expiryYear string the card expiry year as a double-digit e.g 15
cvc string the card 3/4 digit security code as e.g 123
email string email of the user to be charged
amountInKobo integer the transaction amount in kobo
currency (optional) string sets the currency for the transaction e.g. USD
plan (optional) string sets the plan ID if the transaction is to create a subscription e.g. PLN_n0p196bg73y4jcx
subAccount (optional) string sets the subaccount ID for split-payment transactions e.g. ACCT_pz61jjjsslnx1d9
transactionCharge (optional) integer the amount to be charged on a split-payment, use only when subAccount is set
bearer (optional) string sets which party bears paystack fees on a split-payment e.g. 'subaccount', use only when subAccount is set
reference (optional) string sets the transaction reference which must be unique per transaction

Response Object

An object of the form is returned from a successful charge

{
	reference: "trx_1k2o600w"
}

Verifying a Charge

Verify a charge by calling Paystack's REST API with the reference obtained above. An authorization_code will be returned once the card has been charged successfully. Learn more about that here.

Parameter:

  • reference - the transaction reference (required)

Example

$ curl https://api.paystack.co/transaction/verify/trx_1k2o600w \
   -H "Authorization: Bearer SECRET_KEY" \
   -H "Content-Type: application/json" \
   -X GET

4. CREDITS

Perhaps needless to say, this module leverages the Paystack Android SDK and the Paystack IOS SDK for all the heavy liftings.

5. CHANGELOG

  • 1.0.12: Initial version supporting Android.
  • 1.1.1: Android library upgrade and initial iOS support.
  • 2.0.0: A couple of breaking changes have been introduced, see [Old Docs](./Old Docs.md) for previous documentations.
  • 2.0.0: Upgraded to v2.0 of the Paystack Android SDK.
  • 2.0.0: Unified APIs across both platforms (iOS & Android).
  • 2.0.0: Methods now return Javascript Promises on both platforms.
  • 2.1.1: Upgraded to v2.1+ of both the Paystack iOS and Android SDKs.
  • 2.1.1: Added support for chargeCard on both platforms.
  • 2.1.1: Added support for subscriptions and split-payments.
  • 3.1.0: Retired support for getToken on both platforms.
  • 3.1.0: Added support for chargeCardWithAccessCode on both platforms.
  • 3.1.0: Upgraded to v3.*+ of both the Paystack iOS and Android SDKs.
  • 3.1.1: Fix for breaking change in RN v0.47+
  • 3.1.4: Miscellaneous and dependencies update on Android.
  • 3.2.0: A Breaking Change - Initialize library in JS, rather than in native code.
  • 3.3.0: Move to a CocoaPods Flow for iOS.

6. License

This should be The MIT License (MIT). I would have to get back to you on that!

react-native-paystack's People

Contributors

tolu360 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-paystack's Issues

Custom fields for details on transactions

Hello Tolu, I noticed that there is no custom field/metadata on this project. It is so important in cases where Paystack users have more than one product and want to describe the product being paid for by their customers.

Please help look into this. Thanks

Error on Charging Card

Hi,

On updating to v3.1.4, a new error (that wasn't there previously) shows on charging a card.

The error is undefined is not an object (evaluating 'RNPaystackNative.chargeCard')

This is my code sample

return RNPaystack.chargeCard({
      cardNumber: this.state.cardNumber,
      expiryMonth: "02",
      expiryYear: "20",
      cvc: this.state.cvc,
      email: this.state.email,
      amountInKobo: this.state.amount,
    })

BUILD FAILED on ios

on ios, its impossible to build. i get #import <Paystack/Paystack.h> file not found.

"You must specify a valid amount or plan" Error

Hello,

When I try to charge card using access code, the catch(error) function returns,

{ [Error: You must specify a valid amount or plan] framesToPop: 1, code: 'E_TRANSACTION_ERROR'} You must specify a valid amount or plan E_TRANSACTION_ERROR

This is weird because on initialising a transaction from my server, I get a response. Here is the latest one I got

{ status: 'success', data: { authorization_url: 'https://paystack.com/secure/uyn69yyh2vas156', access_code: 'uyn69yyh2vas156', reference: '9gsjuq60vw' } }

Please let me know if there is something I am doing wrong.

Working on android but not on ios

Error: Invalid expiration year
    at Object.promiseMethodWrapper [as chargeCard] (VM4 index.bundle:2150)
    at RNPaystack.chargeCard (VM4 index.bundle:159515)
    at Addcard.<anonymous> (VM4 index.bundle:158858)
    at callCallback (VM4 index.bundle:13857)
    at commitUpdateQueue (VM4 index.bundle:13879)
    at commitLifeCycles (VM4 index.bundle:19786)
    at commitLayoutEffects (VM4 index.bundle:22007)
    at Object.invokeGuardedCallbackImpl (VM4 index.bundle:9228)
    at invokeGuardedCallback (VM4 index.bundle:9322)
    at commitRootImpl (VM4 index.bundle:21796)

Returning this error even when i use test card

Unsupported architecture issues in IPA/Archive (XCODE)

Adding Paystack.framework to embedded libraries in xCode works well in debug and even release, but after archiving it is almost impossible for the app.ipa file to pass validation tests or upload to itunes-connect because paystack-ios supports arch x86_64 (necessary for simulator), linker issues etc.
Using this script to extract archs needed for production only does not seem to solve the problem.

The solution appears to be: removing Paystack.framework from embedded libraries when building for release. Not adding Paystack.framework to embedded libraries does not seem to affect anything. Release builds will still have paystack & RNPaystack functioning normally. And you can upload to app store without issues.
Hope this helps someone.

Issues Implementing paystack using PaystackWebView or RNPaystack

We are using expo for development.

Implementing using PaystackWebView

with usage 2 from (https://www.npmjs.com/package/react-native-paystack-webview):

<PaystackWebView
buttonText="Pay Now"
showPayButton={false}
paystackKey="your-public-key-here"
paystackSecretKey="your-secret-key-here"
amount={120000}
billingEmail="[email protected]"
billingMobile="09787377462"
billingName="Oluwatobi Shokunbi"
ActivityIndicatorColor="green"
SafeAreaViewContainer={{marginTop: 5}}
SafeAreaViewContainerModal={{marginTop: 5}}
handleWebViewMessage={(e) => {
// handle the message
}}
onCancel={(e) => {
// handle response here
}}
onSuccess={(e) => {
// handle response here
}}
autoStart={false}
refNumber={uuid()} // this is only for cases where you have a reference number generated
renderButton=((onPress) => {

Pay Now

})
/>

This is the result:

WhatsApp Image 2020-07-03 at 4 39 47 PM

Implementing using RNPaystack

This is the result:

WhatsApp Image 2020-07-03 at 4 26 16 PM

Issue on setup

I needed to set up payment on my app I built without expo, I've installed and ran the react-native link command, but once I run react-native run-android I keep getting this error and build fails.

I'm working with
"react": "16.8.3",
"react-native": "0.59.4",

Thanks for the help in advance :)

error from console

Could not resolve com.android.support:support-compat:27.0.0.
Required by:
project :react-native-paystack

Cannot find a version of 'com.android.support:support-compat' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:customview:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:viewpager:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:coordinatorlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:drawerlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:slidingpanelayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:swiperefreshlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:asynclayoutinflater:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-compat' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-compat' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-compat' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve android.arch.lifecycle:runtime:1.0.0.
Required by:
project :react-native-paystack
Cannot find a version of 'android.arch.lifecycle:runtime' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'android.arch.lifecycle:runtime' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'android.arch.lifecycle:runtime' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0

Could not resolve android.arch.lifecycle:common:1.0.0.
Required by:
project :react-native-paystack
Cannot find a version of 'android.arch.lifecycle:common' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.lifecycle:common:1.1.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.lifecycle:livedata-core:1.1.1' --> 'android.arch.lifecycle:common:1.1.1'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'android.arch.lifecycle:common' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0

Could not resolve android.arch.core:common:1.0.0.
Required by:
project :react-native-paystack
Cannot find a version of 'android.arch.core:common' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.core:common:1.1.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:common:1.1.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:runtime:1.1.1' --> 'android.arch.core:common:1.1.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.lifecycle:livedata-core:1.1.1' --> 'android.arch.core:common:1.1.1'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'android.arch.core:common' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0

Could not resolve com.android.support:support-fragment:27.0.0.
Required by:
project :react-native-paystack
Cannot find a version of 'com.android.support:support-fragment' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-fragment' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-fragment' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-fragment' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.android.support:support-core-ui:27.0.0.
Required by:
project :react-native-paystack
Cannot find a version of 'com.android.support:support-core-ui' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:animated-vector-drawable:28.0.0' --> 'com.android.support:support-core-ui:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-core-ui' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-core-ui' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.android.support:support-vector-drawable:27.0.0.
Required by:
project :react-native-paystack
Cannot find a version of 'com.android.support:support-vector-drawable' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:animated-vector-drawable:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.android.support:animated-vector-drawable:27.0.0.
Required by:
project :react-native-paystack
Cannot find a version of 'com.android.support:animated-vector-drawable' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:animated-vector-drawable:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:animated-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:animated-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:animated-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.android.support:appcompat-v7:28.0.0.
Required by:
project :react-native-paystack > com.facebook.react:react-native:0.59.4
Cannot find a version of 'com.android.support:appcompat-v7' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.android.support:appcompat-v7:27.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'co.paystack.android.design.widget:pinpad:1.0.1' --> 'com.android.support:appcompat-v7:27.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:appcompat-v7' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:appcompat-v7' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:appcompat-v7' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:appcompat-v7' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
Required by:
project :react-native-paystack > com.facebook.react:react-native:0.59.4
project :react-native-paystack > com.facebook.react:react-native:0.59.4 > com.squareup.okhttp3:okhttp-urlconnection:3.12.1
Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.squareup.okhttp3:okhttp:3.7.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.squareup.retrofit2:retrofit:2.1.0' --> 'com.squareup.okhttp3:okhttp:3.3.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0

Could not resolve com.squareup.okio:okio:1.15.0.
Required by:
project :react-native-paystack > com.facebook.react:react-native:0.59.4
project :react-native-paystack > com.squareup.okhttp3:okhttp:3.12.1
Cannot find a version of 'com.squareup.okio:okio' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.squareup.okio:okio:1.15.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okio:okio' strictly '1.12.0' because of the following reason: debugRuntimeClasspath uses version 1.12.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okio:okio' strictly '1.12.0' because of the following reason: debugRuntimeClasspath uses version 1.12.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okio:okio' strictly '1.12.0' because of the following reason: debugRuntimeClasspath uses version 1.12.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okio:okio' strictly '1.12.0' because of the following reason: debugRuntimeClasspath uses version 1.12.0

Could not resolve com.squareup.okhttp3:okhttp:3.7.0.
Required by:
project :react-native-paystack > co.paystack.android:paystack:3.0.10
Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.squareup.okhttp3:okhttp:3.7.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.squareup.retrofit2:retrofit:2.1.0' --> 'com.squareup.okhttp3:okhttp:3.3.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0

Could not resolve com.android.support:appcompat-v7:27.0.0.
Required by:
project :react-native-paystack > co.paystack.android:paystack:3.0.10
project :react-native-paystack > co.paystack.android.design.widget:pinpad:1.0.1
Cannot find a version of 'com.android.support:appcompat-v7' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.android.support:appcompat-v7:27.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'co.paystack.android.design.widget:pinpad:1.0.1' --> 'com.android.support:appcompat-v7:27.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:appcompat-v7' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:appcompat-v7' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:appcompat-v7' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:appcompat-v7' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.android.support:support-annotations:28.0.0.
Required by:
project :react-native-paystack > com.android.support:appcompat-v7:28.0.0
project :react-native-paystack > com.android.support:support-compat:28.0.0
project :react-native-paystack > com.android.support:appcompat-v7:28.0.0 > com.android.support:collections:28.0.0
project :react-native-paystack > com.android.support:appcompat-v7:28.0.0 > com.android.support:cursoradapter:28.0.0
project :react-native-paystack > com.android.support:support-core-utils:28.0.0
project :react-native-paystack > com.android.support:support-fragment:28.0.0
project :react-native-paystack > com.android.support:support-vector-drawable:28.0.0
project :react-native-paystack > com.android.support:support-compat:28.0.0 > com.android.support:versionedparcelable:28.0.0
project :react-native-paystack > com.android.support:support-core-utils:28.0.0 > com.android.support:documentfile:28.0.0
project :react-native-paystack > com.android.support:support-core-utils:28.0.0 > com.android.support:loader:28.0.0
project :react-native-paystack > com.android.support:support-core-utils:28.0.0 > com.android.support:localbroadcastmanager:28.0.0
project :react-native-paystack > com.android.support:support-core-utils:28.0.0 > com.android.support:print:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:customview:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:viewpager:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:coordinatorlayout:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:drawerlayout:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:slidingpanelayout:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:interpolator:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:swiperefreshlayout:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:asynclayoutinflater:28.0.0
Cannot find a version of 'com.android.support:support-annotations' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:collections:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:cursoradapter:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'com.android.support:versionedparcelable:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:documentfile:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:localbroadcastmanager:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:print:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'android.arch.lifecycle:viewmodel:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.lifecycle:common:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.core:common:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:customview:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:viewpager:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:coordinatorlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:drawerlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:slidingpanelayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:interpolator:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:swiperefreshlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:asynclayoutinflater:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:runtime:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-annotations' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-annotations' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-annotations' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.android.support:support-compat:28.0.0.
Required by:
project :react-native-paystack > com.android.support:appcompat-v7:28.0.0
project :react-native-paystack > com.android.support:support-core-utils:28.0.0
project :react-native-paystack > com.android.support:support-fragment:28.0.0
project :react-native-paystack > com.android.support:support-vector-drawable:28.0.0
project :react-native-paystack > com.android.support:support-core-utils:28.0.0 > com.android.support:loader:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:customview:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:viewpager:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:coordinatorlayout:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:drawerlayout:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:slidingpanelayout:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:swiperefreshlayout:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0 > com.android.support:asynclayoutinflater:28.0.0
Cannot find a version of 'com.android.support:support-compat' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:customview:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:viewpager:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:coordinatorlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:drawerlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:slidingpanelayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:swiperefreshlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:asynclayoutinflater:28.0.0' --> 'com.android.support:support-compat:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-compat' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-compat' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-compat' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.android.support:support-core-utils:28.0.0.
Required by:
project :react-native-paystack > com.android.support:appcompat-v7:28.0.0
project :react-native-paystack > com.android.support:support-fragment:28.0.0
project :react-native-paystack > com.android.support:support-core-ui:28.0.0
Cannot find a version of 'com.android.support:support-core-utils' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-utils:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-core-utils:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-core-utils' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-core-utils' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-core-utils' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.android.support:support-fragment:28.0.0.
Required by:
project :react-native-paystack > com.android.support:appcompat-v7:28.0.0
Cannot find a version of 'com.android.support:support-fragment' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-fragment' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-fragment' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-fragment' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.android.support:support-vector-drawable:28.0.0.
Required by:
project :react-native-paystack > com.android.support:appcompat-v7:28.0.0
project :react-native-paystack > com.android.support:animated-vector-drawable:28.0.0
Cannot find a version of 'com.android.support:support-vector-drawable' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:animated-vector-drawable:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.android.support:animated-vector-drawable:28.0.0.
Required by:
project :react-native-paystack > com.android.support:appcompat-v7:28.0.0
Cannot find a version of 'com.android.support:animated-vector-drawable' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:animated-vector-drawable:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:animated-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:animated-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:animated-vector-drawable' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve com.squareup.okhttp3:okhttp:3.10.0.
Required by:
project :react-native-paystack > com.facebook.react:react-native:0.59.4 > com.facebook.fresco:imagepipeline-okhttp3:1.10.0
Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.squareup.okhttp3:okhttp:3.7.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.squareup.retrofit2:retrofit:2.1.0' --> 'com.squareup.okhttp3:okhttp:3.3.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0

Could not resolve com.squareup.okhttp3:okhttp:3.3.0.
Required by:
project :react-native-paystack > com.squareup.retrofit2:retrofit:2.1.0
Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.squareup.okhttp3:okhttp:3.7.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.squareup.retrofit2:retrofit:2.1.0' --> 'com.squareup.okhttp3:okhttp:3.3.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0

Could not resolve android.arch.lifecycle:runtime:1.1.1.
Required by:
project :react-native-paystack > com.android.support:support-compat:28.0.0
Cannot find a version of 'android.arch.lifecycle:runtime' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'android.arch.lifecycle:runtime' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'android.arch.lifecycle:runtime' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0

Could not resolve com.android.support:support-core-ui:28.0.0.
Required by:
project :react-native-paystack > com.android.support:support-fragment:28.0.0
project :react-native-paystack > com.android.support:animated-vector-drawable:28.0.0
Cannot find a version of 'com.android.support:support-core-ui' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:animated-vector-drawable:28.0.0' --> 'com.android.support:support-core-ui:28.0.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-core-ui' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-core-ui' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Could not resolve android.arch.lifecycle:common:1.1.1.
Required by:
project :react-native-paystack > android.arch.lifecycle:runtime:1.1.1
project :react-native-paystack > com.android.support:support-core-utils:28.0.0 > com.android.support:loader:28.0.0 > android.arch.lifecycle:livedata:1.1.1 > android.arch.lifecycle:livedata-core:1.1.1
Cannot find a version of 'android.arch.lifecycle:common' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.lifecycle:common:1.1.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.lifecycle:livedata-core:1.1.1' --> 'android.arch.lifecycle:common:1.1.1'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'android.arch.lifecycle:common' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0

Could not resolve android.arch.core:common:1.1.1.
Required by:
project :react-native-paystack > android.arch.lifecycle:runtime:1.1.1
project :react-native-paystack > com.android.support:support-core-utils:28.0.0 > com.android.support:loader:28.0.0 > android.arch.lifecycle:livedata:1.1.1
project :react-native-paystack > com.android.support:support-core-utils:28.0.0 > com.android.support:loader:28.0.0 > android.arch.lifecycle:livedata:1.1.1 > android.arch.core:runtime:1.1.1
project :react-native-paystack > com.android.support:support-core-utils:28.0.0 > com.android.support:loader:28.0.0 > android.arch.lifecycle:livedata:1.1.1 > android.arch.lifecycle:livedata-core:1.1.1
Cannot find a version of 'android.arch.core:common' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.core:common:1.1.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:common:1.1.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:runtime:1.1.1' --> 'android.arch.core:common:1.1.1'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.lifecycle:livedata-core:1.1.1' --> 'android.arch.core:common:1.1.1'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'android.arch.core:common' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0

Could not resolve com.android.support:support-annotations:26.1.0.
Required by:
project :react-native-paystack > android.arch.lifecycle:runtime:1.1.1
project :react-native-paystack > com.android.support:support-fragment:28.0.0 > android.arch.lifecycle:viewmodel:1.1.1
project :react-native-paystack > android.arch.lifecycle:common:1.1.1
project :react-native-paystack > android.arch.core:common:1.1.1
project :react-native-paystack > com.android.support:support-core-utils:28.0.0 > com.android.support:loader:28.0.0 > android.arch.lifecycle:livedata:1.1.1 > android.arch.core:runtime:1.1.1
Cannot find a version of 'com.android.support:support-annotations' that satisfies the version constraints:
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:collections:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:cursoradapter:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'com.android.support:versionedparcelable:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:documentfile:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:localbroadcastmanager:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:print:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'android.arch.lifecycle:viewmodel:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.lifecycle:common:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.core:common:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:customview:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:viewpager:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:coordinatorlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:drawerlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:slidingpanelayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:interpolator:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:swiperefreshlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:asynclayoutinflater:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
Dependency path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.4' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:runtime:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-annotations' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-annotations' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0
Constraint path 'roadsideUSER:react-native-paystack:unspecified' --> 'com.android.support:support-annotations' strictly '27.0.0' because of the following reason: debugRuntimeClasspath uses version 27.0.0

Update your Android build tools and environment to v27+

@tolu360 Please must i use compileSdkVersion 27 and buildToolsVersion "27.0.0" so as to use the paystack library effectively?
Cos i am having issues with generating my APK and one of the solutions is to modify compileSdkVersion 26 buildToolsVersion "26.0.1"

Setup/Build failed with react-native 0.60. and androidx

I'm stuck because I'm using react-native 0.60. Error is below:

* What went wrong:
Could not determine the dependencies of task ':react-native-paystack:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-paystack:debugCompileClasspath'.
   > Could not resolve androidx.appcompat:appcompat:{strictly 1.0.0}.
     Required by:
         project :react-native-paystack
      > Cannot find a version of 'androidx.appcompat:appcompat' that satisfies the version constraints: 
           Dependency path 'project1:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2'
           Constraint path 'project1:react-native-paystack:unspecified' --> 'androidx.appcompat:appcompat:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0

`method does not override or implement a method from a supertype` Error on RNPaystackPackage.java

On installing the react-native-paystack Library, there is an error I can't seem to get past.

These are the two errors shown on Android Studio

Error:(16, 5) error: method does not override or implement a method from a supertype

Error:Execution failed for task ':react-native-paystack:compileReleaseJavaWithJavac'. Compilation failed; see the compiler error output for details.

Both of these errors seem to emanate from the createJSModules function as shown below


import ...

public class RNPaystackPackage implements ReactPackage {
    
    @Override     // <--- this module
    public List<Class<? extends JavaScriptModule>> createJSModules() {
        return Collections.emptyList();
    }

    @Override
    public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
        return Collections.emptyList();
    }

    @Override
    public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
        List<NativeModule> modules = new ArrayList<>();
        modules.add(new RNPaystackModule(reactContext));
        return modules;
    }
}

How do I resolve this please 🙂

Null is not an object

TypeError: null is not an Object (evaluating 'RNPaystackModule.init)

I put this in my App.js

import RNPaystack from "react-native-paystack";

RNPaystack.init({
publicKey: "pk_live_994b4tyu471qwdft543wedf68650aa243"
});

Payment failing

hello @tolu360 i am having a new challenge. payment has been working up until i tested today because my app had just been published on the playstore. I tested and it doesnt work it keeps saying "unknown server response" i tried testing with a test keys and cards it works but it doesnt work in live environment. is there something going on with paystack?

Error: undefined is not an object (evaluating 'RNPaystackNative.chargeCardWithAccessCode')

Hello @tolu360, please I'm having this error and couldn't resolve it yet. I'm using react native v0.55.3 Your help is well appreciated. Thank you

undefined is not an object (evaluating 'RNPaystackNative.chargeCardWithAccessCode')
chargeCardWithAccessCode
c:\dc\react2\icobaw\node_modules\react-native-paystack\index.js:22:26
chargeCardAccess
c:\dc\react2\icobaw\src\pages\tabPages\paystack.js:27:40
touchableHandlePress
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Components\Touchable\TouchableOpacity.js:201:45
_performSideEffectsForTransition
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Components\Touchable\Touchable.js:744:34
_receiveSignal
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Components\Touchable\Touchable.js:662:44
touchableHandleResponderRelease
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Components\Touchable\Touchable.js:431:24
invokeGuardedCallback
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:39:15
invokeGuardedCallback
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:221:34
invokeGuardedCallbackAndCatchFirstError
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:245:48
executeDispatch
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:572:4
executeDispatchesInOrder
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:603:20
executeDispatchesAndRelease
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:761:29
executeDispatchesAndReleaseTopLevel
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:772:37
forEachAccumulated
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:740:16
runEventsInBatch
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:927:6
runExtractedEventsInBatch
c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:952:19

c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:2703:6 batchedUpdates c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:13724:16 batchedUpdates c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:2565:27 _receiveRootNodeIDEvent c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:2701:17 receiveTouches c:\dc\react2\icobaw\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:2777:28 __callFunction c:\dc\react2\icobaw\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:351:47 c:\dc\react2\icobaw\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:116:26 __guardSafe c:\dc\react2\icobaw\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:314:6 callFunctionReturnFlushedQueue c:\dc\react2\icobaw\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:115:17

How do I PayStack Split Payment with the Old method of PaystackAndroid OR HOW DO I DO IT with the NEW METHOD

Hi, Please I am under pressure to implement a payment method an app I just completed. It requires split payment... I don't understand some parts of the current documentation. From the Old docs.md , I understand how to get a token but the new documentation is not very clear. Does "access_code" MEAN "token"
From my experience with stripe, I understand Public Key, and Token
I can see how to use the public key, but I don't understand how to get a token and how to get a subAccount code for the split payment...

PLEASE HELP!!! I have no experience with using the popular paystack platform

Please I want to know before I go ahead to create an account on Paystack

'Paystack/Paystack.h' file not found

Hi Tolu,
please help me attend to this.

This error has been pop up for a while now, I tried a all the installation method all to no avail

#import <Paystack/Paystack.h>

Could not resolve all files for configuration ':react-native-paystack:debugCompileClasspath'.

Android "react-native": "0.59.2",

Steps to reproduce

  1. Create an RN project
  2. run npm install react-native-paystack --save
  3. run react-native link react-native-paystack
  4. run npm start --reset-cache
  5. run yarn run android

Task :react-native-paystack:compileDebugRenderscript FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ':react-native-paystack:debugCompileClasspath'.

Could not resolve com.squareup.okhttp3:okhttp:3.7.0.
Required by:
project :react-native-paystack
Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
Dependency path 'Biscayne:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.2' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path 'Biscayne:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.squareup.okhttp3:okhttp:3.7.0'
Dependency path 'Biscayne:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.2' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
Dependency path 'Biscayne:react-native-paystack:unspecified' --> 'com.facebook.react:react-native:0.59.2' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path 'Biscayne:react-native-paystack:unspecified' --> 'co.paystack.android:paystack:3.0.10' --> 'com.squareup.retrofit2:retrofit:2.1.0' --> 'com.squareup.okhttp3:okhttp:3.3.0'
Constraint path 'Biscayne:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'Biscayne:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'Biscayne:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0
Constraint path 'Biscayne:react-native-paystack:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.7.0' because of the following reason: debugRuntimeClasspath uses version 3.7.0

AAPT: error: resource attr/foreground

VERSION

  • React Native: ~0.61.4
  • Paystack vaersion: ^3.4.0
  • Android gradle: 3.6.3

WHAT DID I DO

  • Install paystack using yarn
  • complete setting on iOS and it works fine
  • Did nothing on android because of autolinking and it throws error
  • Throws error

ERROR MESSAGE

Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     /Users/username/.gradle/caches/transforms-2/files-2.1/a87106e7088d5bdb8f21b169b6bd1e33/jetified-pinpad-1.0.1/res/values/values.xml:7:5-161: AAPT: error: resource attr/foreground (aka com.appname/foreground) not found.

     /Users/username/.gradle/caches/transforms-2/files-2.1/a87106e7088d5bdb8f21b169b6bd1e33/jetified-pinpad-1.0.1/res/values/values.xml:7:5-161: AAPT: error: resource attr/foregroundGravity (aka com.appName/foregroundGravity) not found.```

[Error: Error charging card] when using chargeCardWithAccessCode

Hello,

I am having an issue charging a card with this library I am using the chargeCardWithAccessCode function and this always gives me [Error: Error charging card] i am initializing the transaction on the backend as suggested on the docs.

I saw another issue #18 similar to this and someone suggested I use the card numbers like this 4123 4501 3100 1381 instead of this 4123450131001381 but still with no luck.

i tried using chargeCard method this works as expected.

Android Release build issue

So I have debugged and pinpointed that in Release Mode, react native apps don't compile in release mode, they only work in debug mode.

I tested by removing all the Paystack code and uninstalling and it compiles fine into release mode, but when compiling to release, I had to

  1. Add 'android.enableAapt2=false'
  2. It then gives the error 'Error:In ForegroundView, unable to find attribute foreground' and we are unable to get past that point.

Please assist.

Enable metadata support for Android

The paystack-android library has support for metadata but the react-native plugin does not recognize metadata for Android (I think it recognizes for iOS if I read the code right).

Enabling metadata support will be helpful for a lot of integrations

    RNPaystack.chargeCard({
        cardNumber: '4123450131001381', 
        expiryMonth: '10', 
        expiryYear: '17', 
        cvc: '883',
        email: '[email protected]',
        amountInKobo: 150000,
        metadata: {
        custom_fields: [
          {
            value: "Payment From Android",
            display_name: "Payment From Android",
            variable_name: "payment_from_android"
          }
        ]
       }
    })

E_Transaction_Error

hi @tolu360 i was trying to integrate paystack to my react native app, i follow all the necessary steps

But when am trying to make payment , the response i receive was

trx_...... concluded with error, unable to process transaction.
this are some of the card details i used

Card Number: 5078 5078 5078 5078 12 (Verve)
Expiry Date: any date in the future
CVV: 081
PIN: 1111

expiryMonth:'12',
expiryYear:'19',
cardNumber:'4123450131001381',
cvc:'883',

Please i dont know if am doing anything wrong or the card details are wrong

react-native-paystack for RN 0.60* and below

Hi All,

Before you submit a new issue, please ensure you are on v3.4.0 or higher for react-native-paystack and have followed the instructions below:

Suggested update path should follow the following steps:

  • npm/yarn remove react-native-paystack
  • Go give the README a read again, new instructions have been added that you should totally be aware of, to know how to proceed. !Important
  • Understand how auto-linking works in RN 0.59 and below as against how it works in RN 0.60 (essentially no linking is required on RN 60 and above) - follow whichever applies to your app.
  • Clean your project on Android, run cd android followed by ./gradlew clean
  • npm install react-native-paystack or yarn add react-native-paystack
  • Build your app and profit.
  • The latest release is 3.4.0 and is tested and works perfectly in RN 60. and below*!

Cheers!

Aapt errors when building release apk if using RNPaystack and React Navigation

@tolu360 As it stands, it is impossible to generate a release variant if using this react-native-paystack with react navigation.
This is because react-native-paystack requires having to set android.enableAapt2=true else you will get these errors:

ERROR: In <declare-styleable> ForegroundView, unable to find attribute foreground
ERROR: In <declare-styleable> ForegroundView, unable to find attribute foregroundGravity
ERROR: In <declare-styleable> ForegroundView, unable to find attribute foregroundInsidePadding

Meanwhile you will get this common error
arising from react navigation \android\app\build\intermediates\res\merged\release\drawable-hdpi\node_modules_reactnavigation_src_views_assets_backicon.png: error: uncompiled PNG file passed as argument. Must be compiled first into .flat file.. if you have android.enableAapt2=true in your gradle.properties. (This temporary fix to this is changing to android.enableAapt2=false in gradle.properties)

react-native-paystack #9
react-navigation #3097

Any help will be greatly appreciated

Transaction error

catch(error) Error returned can't find variable name and you didn't mention anything about name in the docs.

Error: Unable to resolve host

Hi @tolu360 , I have been working with this package without problems, but suddenly i wanted to showcase the app, then when i trigger the function, it says Error: Unable to resolve host "standard.paystack.co": No address associated with this hostname

What could be the cause please?

Auth code

Hello, this is not really an issue but i would like to find out if there is anyway of getting the authorization_code from a transaction in order to make the transaction re-usable. Thank you

Paystack SDK causes error in "react-native-custom-tabs"

Hi @tolu360 ! and thanks for this module, is very useful.
I have been using "react-native-custom-tabs" in my project, it's an Inapp-browser.
When i installed paystack sdk in my project, I have this error as shown below, whenever i tried to launch the Inapp browser;

screenshot_2017-03-31-00-06-46

Please help!

Currency Error when using chargeCard function

In trying to use the chargeCard function, an a "Currency not supported by merchant" error is obtained as a response every time even though the correct currency parameters are being passed as part of the request object.

ios/Paystack.framework/Paystack(PSTCKTransaction.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file

bitcode bundle could not be generated because '/Users/userName/Downloads/path/Working/projectName/ios/Paystack.framework/Paystack(PSTCKTransaction.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file '/Users/userName/Downloads/path/Working/projectName/ios/Paystack.framework/Paystack' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@tolu360 i am getting this error while generating Archive(to generate IPA) on xcode while it run ok on emulator

Stuck on Loading sometimes and generic Error Charging Card message

Hi,

I am working with the most recent React Native and the latest version of your package. I'm used t Paystack and it works super well on most of our products, but this is our first "native" implmentation with React Native (usually use the inline version) So I have noticed that in test mode all is well, but when I put in my Live Public Key (in AppDelegate.m) and test with a real card, sometimes it stays loading indefinitely and other times i get a generic 'Error Charging Card Message'
Excerpt of my code below: (note all variables are accurate and it returns a correct error response if the card number or etc is invalid)

import RNPaystack from 'react-native-paystack';

RNPaystack.chargeCard({
cardNumber: cardNum,
expiryMonth: mm,
expiryYear: yy,
cvc: cvc,
})

// AppDelegate.m
[Paystack setDefaultPublicKey:@"pk_live_MYLIVEKEY"];

So what could be causing the infinite loading? Am I meant to set my secret key somewhere, as I could not find a location for that in the documentation.

OTP Screen

Some card requires OTP to finalize your payment and from your SDK Docs, you didn't show how to handle this scenario. Please, can you help?

React Native PayStack for Expo

Hi. Looking through the ReadMe, it seems the package requires linking, which cannot work with expo. Is there a way to make this work with expo?

Task :app:processDebugManifest FAILED

WARNING: The specified Android SDK Build Tools version (27.0.0) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.4.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '27.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Then this

> Task :app:processDebugManifest FAILED
/Users/admin/code/Test/android/app/src/main/AndroidManifest.xml:11:7-34 Error:
        Attribute application@allowBackup value=(false) from AndroidManifest.xml:11:7-34
        is also present at [:react-native-paystack] AndroidManifest.xml:14:9-35 value=(true).
        Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-24:19 to override.

I use react-native v0.57.3

release build failed

i keep getting the bellow errors.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-paystack:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/Users/mac/Development/QuickCash/node_modules/react-native-paystack/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/Users/mac/Development/QuickCash/node_modules/react-native-paystack/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/Users/mac/Development/QuickCash/node_modules/react-native-paystack/android/build/intermediates/res/merged/release/values/values.xml:2647: error: resource android:attr/fontVariationSettings not found.
/Users/mac/Development/QuickCash/node_modules/react-native-paystack/android/build/intermediates/res/merged/release/values/values.xml:2648: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Can't charge card on iOS

Hello @tolu360 , @steveamaza . I need help please. So this package works flawlessly on android, however on iOS I cannot charge a test nor real cards.
I have followed your instructions on how to set this up properly, but when I run it I get this:

[tid:com.facebook.react.JavaScript] 'error', { [Error: Error charging card]
  framesToPop: 1,
  code: 'E_CHARGE_ERROR',
  nativeStackIOS: 
   [ '0   My_App                            0x0000000108fdbab6 RCTJSErrorFromCodeMessageAndNSError + 134',
     '1   My_App                            0x0000000108f6a4b3 __41-[RCTModuleMethod processMethodSignature]_block_invoke_2.218 + 179',
     '2   My_App                            0x00000001091f0d18 __43-[RNPaystack chargeCard:resolver:rejecter:]_block_invoke_2 + 168',
     '3   Paystack                            0x00000001099d737e __56-[PSTCKAPIClient(CreditCards) didEndWithProcessingError]_block_invoke + 222',
     '4   Foundation                          0x0000000109aff363 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7',
     '5   Foundation                          0x0000000109aff1ca -[NSBlockOperation main] + 68',
     '6   Foundation                          0x0000000109afd6b2 -[__NSOperationInternal _start:] + 766',
     '7   libdispatch.dylib                   0x0000000110bab7ec _dispatch_client_callout + 8',
     '8   libdispatch.dylib                   0x0000000110bb0db8 _dispatch_block_invoke_direct + 592',
     '9   libdispatch.dylib                   0x0000000110bab7ec _dispatch_client_callout + 8',
     '10  libdispatch.dylib                   0x0000000110bb0db8 _dispatch_block_invoke_direct + 592',
     '11  libdispatch.dylib                   0x0000000110bb0b48 dispatch_block_perform + 109',
     '12  Foundation                          0x0000000109af975b __NSOQSchedule_f + 337',
     '13  libdispatch.dylib                   0x0000000110bab7ec _dispatch_client_callout + 8',
     '14  libdispatch.dylib                   0x0000000110bb68cf _dispatch_main_queue_callback_4CF + 628',
     '15  CoreFoundation                      0x000000010bc36c99 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9',
     '16  CoreFoundation                      0x000000010bbfaea6 __CFRunLoopRun + 2342',
     '17  CoreFoundation                      0x000000010bbfa30b CFRunLoopRunSpecific + 635',
     '18  GraphicsServices                    0x0000000112e66a73 GSEventRunModal + 62',
     '19  UIKit                               0x000000010e8f1057 UIApplicationMain + 159',
     '20  My_App                            0x0000000108ec3d1f main + 111',
     '21  libdyld.dylib                       0x0000000110c28955 start + 1',
     '22  ???                                 0x0000000000000001 0x0 + 1' ],
  userInfo: 
   { 'com.paystack.lib:ErrorMessageKey': 'Please wait',
     NSLocalizedDescription: 'Please wait' },
  domain: 'com.paystack.lib',
  line: 2268,
  column: 26,
  sourceURL: 'http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false' }

I have keychain sharing enabled. I have used live and test public and secret keys. Everything appears properly linked. I am using RNPaystack.chargeCard method.
Any help will be greatly appreciated

How can I integrate react-native-paystack to an e-commerce app.

How can I integrate react-native-paystack to an e-commerce type of app where I take the users card details at sign up and can charge them with a token whenever they make a purchase ???? From what I see in the repo, I have to initialize transaction before send card details.
Please its urgent.
HELP

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.