zo0r / react-native-conekta Goto Github PK
View Code? Open in Web Editor NEWReact Native Conekta SDK for iOS and Android
Home Page: https://www.conekta.io
License: MIT License
React Native Conekta SDK for iOS and Android
Home Page: https://www.conekta.io
License: MIT License
I would like to set language like Conekta.js, its that possible?
Hello,
I am ussing conekta api for android and iOS app, this is the only api that have work for me.
In my last upload to the app store apple sendme the next email:
ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.
I hace searched in my entire project and i found that in
node_modules/RNConekta/Conekta/Conekta.m it use it:
`#import "Conekta.h"
@implementation Conekta
UIWebView *web;
(id) init
{
web = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
[self setBaseURI:@"https://api.conekta.io"];
return self;
}
(NSString *) deviceFingerprint
{
NSString *uuid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
return [uuid stringByReplacingOccurrencesOfString:@"-" withString:@""];
}
`
How can it be fixed???
i would like to use this library with expo ( expo.io ) its that possible?
I'm getting the following with react-native 0.56.0
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-conekta'.
> The SDK Build Tools revision (23.0.1) is too low for project ':react-native-conekta'. Minimum required is 25.0.0
react-native-conekta/android/build.gradle
Lines 4 to 5 in b5d7f72
Should be updated to
compileSdkVersion 25
buildToolsVersion "25.0.2"
targetSdkVersion 25
or even better values from the root project
compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : 25
buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : "25.0.2"
targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : 25
The following packages use deprecated "rnpm" config that will stop working from next release:
I am learner in React-Native and Conekta. Please help me.
My code is:
import Conekta from 'react-native-conekta'
initializeConekta = () => {
var conektaApi = new Conekta()
conektaApi.setPublicKey(CONEKTA_KEY)
conektaApi.createToken({
cardNumber: this.state.cardNumber,
name: this.state.nameOnTheCard,
cvc: this.state.cvv,
expMonth: this.state.expMonth,
expYear: this.state.expYear,
}, function(data){
console.log( 'DATA:' + data ); // data.id to get the Token ID
}, function(err){
console.log( 'Error:' + err );
})
}
@zo0r I am not sure what is wrong here? Could you please check and let me know what I miss here?
Looks like most issues with this lib has been fixed but not released.
So current master branch actually works with latest react native.
Please can you just create a new version and release it?
Hello, I have this issue and other similar issues in Android Installation
/MainApplication.java:45: error: cannot find symbol
protected void onCreate(Bundle savedInstanceState) {
^
symbol: class Bundle
location: class MainApplication
Any solution?
thank you
I was using this library with rn 0.55.4 and worked fine but I had to update to 0.60.0 and it stopped working in iOS, in android works fine.
I added manually this library and I am getting this error: '
React/RCTBridgeModule.h' file not found
I created a fresh project and still getting the same error and this just happens when I add the library into Build phases -> Link Binary with Libraries.
Also when I do pod install at the end I get:
use_native_modules! skipped the react-native dependency 'react-native-conekta'. No podspec file was found.
It seems that needs cocoa support.
Thank you
I saw that there was a commit with a .podspec file, I added it into react-native-conekta folder and it seems that works fine!. I will be waiting for the next release, thx.
https://github.com/zo0r/react-native-conekta/tree/ef3e797e13e0bffcb412b2757f269fe114677b28
Usage with react native 0.59 requires to att
<uses-library android:name="org.apache.http.legacy" android:required="false"/> <!- needed cause conekta uses old http library -->
in android/app/src/main/AndroidManifest.xml
like this
<manifest>
...
<application ...>
<uses-library android:name="org.apache.http.legacy" android:required="false"/> <!- needed cause conekta uses old http library -->
...
</application>
</manifest>
otherwise createToken will fail with following error
Could not invoke RNConekta.createToken
null
Failed resolution of: Lorg/apache/http/message/BasicNameValuePair;
Didn't find class "org.apache.http.message.BasicNameValuePair" on path: DexPathList[[zip file "xxx"],nativeLibraryDirectories=[/xxx]]
invoke
JavaMethodWrapper.java:383
invoke
JavaModuleWrapper.java:158
run
NativeRunnable.java
handleCallback
Handler.java:873
dispatchMessage
Handler.java:99
dispatchMessage
MessageQueueThreadHandler.java:29
loop
Looper.java:193
run
MessageQueueThreadImpl.java:232
run
Thread.java:764
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.