-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native-paystack for RN 0.60* and below #38
Comments
Either include the error from Android logcat or console.log(error.message)
in js - both of them may even be more helpful. And also your version of RN?
But a transaction error just shows you are doing something wrong in your
own code! Check keys again too!
…On Thu, Sep 5, 2019, 5:39 PM Collins ogbuzuru ***@***.***> wrote:
After updating the SDK I get this error
[image: Screenshot_1567697803]
<https://user-images.githubusercontent.com/31220512/64361218-1870c100-d004-11e9-870a-4060ccf6251a.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#38?email_source=notifications&email_token=AA53YZQV35U36SMXWPSRGFDQIEY4VA5CNFSM4ITVKVZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD57ZEIA#issuecomment-528454176>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA53YZSXFV6OWYXMF6SKZYTQIEY4VANCNFSM4ITVKVZQ>
.
|
Hi,
Info: react-native-paystack: "^3.4.0" Please help attend to this |
Hi @lucasdozie, I don't know why you resorted to manual linking, but it is very much unnecessary - the section of the README under auto-linking for iOS for RN 0.59 and lower would be adequate to set up on iOS - please go over the steps again. |
Hi @tolu360 |
@lucasdozie, so try to clean your Xcode project (Product > Clean Build Folder) and then build again. If you still have issues, this is weird by the way, let us start from the scratch (show me your Podfile before you begin steps below - copy and paste the content here, if possible):
|
Podfile
|
So, I am going to clean that up a little and disable dynamic frameworks: platform :ios, '9.0'
target 'thrive' do
# use_frameworks!
# Pods for thrive
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'
pod 'react-native-paystack', :path => '../node_modules/react-native-paystack'
pod 'react-native-simple-toast', :path => '../node_modules/react-native-simple-toast'
end Use this with the steps I provided above earlier and revert |
So I tried the above solution but I'm now getting this error |
You may still have remnants of your previous failed attempts you need to remove and clean up. The
Can you provide the reported missing file or library along with the error? And make sure that after installing pods, you open your project again in Xcode with the .xcworkspace file not the .xcodeproj file. |
Thanks a lot man |
@lucasdozie if you are getting an error code of E_BUSY, you may be calling methods off of the library in too rapid successions, such that you are not allowing a request to the API finish before making a new one. You should employ the use of loaders/spinners and deactivating your pay buttons when a payment request is in progress e.g. chargeCard() {
// deactivate pay button here <-------
// show spinner here <-------
RNPaystack.chargeCardWithAccessCode({
cardNumber: '4123450131001381',
expiryMonth: '10',
expiryYear: '19',
cvc: '883',
accessCode: '2p3j42th639duy4'
})
.then(response => {
console.log(response); // do stuff with the token
// hide spinner here <-------
// activate pay button here or show success message <-------
})
.catch(error => {
console.log(error.message);
// activate pay button here <-------
// hide spinner here <-------
})
} |
Sorry for just replying now, since iOS was kinda buggy i left to to focus on android. |
Also I am getting |
@tolu360 Here is my script, its works on android but iOS tends to initiate a double call, but the first console.log only shows once when that happens Also somethings after pressing the payment btn, the loader loads for ever
|
@tolu360 I am still experiencing this on iOS, any solution please? |
@tolu360 I keep getting this error |
Hi All,
Before you submit a new issue, please ensure you are on
v3.4.0
or higher forreact-native-paystack
and have followed the instructions below:Suggested update path should follow the following steps:
npm/yarn remove react-native-paystack
cd android
followed by./gradlew clean
npm install react-native-paystack
oryarn add react-native-paystack
Cheers!
The text was updated successfully, but these errors were encountered: