GithubHelp home page GithubHelp logo

zo0r / react-native-conekta Goto Github PK

View Code? Open in Web Editor NEW
31.0 5.0 22.0 40 KB

React Native Conekta SDK for iOS and Android

Home Page: https://www.conekta.io

License: MIT License

Objective-C 71.70% JavaScript 5.73% Java 19.01% Ruby 3.56%
react-native ios android conekta payments payment-gateway payment-integration payment-methods

react-native-conekta's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar

react-native-conekta's Issues

ITMS-90809: Deprecated API Usage

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???

Support for React Native 0.56

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

compileSdkVersion 23
buildToolsVersion "23.0.1"

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

Getting error - undefined is not an object (evaluating 'RNConekta.createToken')

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?

Please release a new version to NPM

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?

cannot find symbol Bundle

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

RN 0.60.0 support

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

UPDATED

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

Document android react native > 0.59 usage

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

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.