Giter VIP home page Giter VIP logo

react-native-openpay's People

Contributors

cesarlanderos avatar marcomacedop avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-openpay's Issues

linker command failed with exit code 1

I see this library isn't updated to latest react native version. Perhaps this is the issue. I'm using react native version 0.45 Any chances fixing this?

ld: '/Users/Javier/Library/Developer/Xcode/DerivedData/LaxApp-ffnuyprwdkwnvacuxnfagyzacyej/Build/Products/Debug-iphoneos/libRNOpenpay.a(DataCollection.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/Javier/Library/Developer/Xcode/DerivedData/LaxApp-ffnuyprwdkwnvacuxnfagyzacyej/Build/Products/Debug-iphoneos/libRNOpenpay.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Generación de token no se refleja en el dashboard

Estoy tratando de generar el token de la tarjeta y logro obtenerlo, pero este proceso no se refleja en la plataforma como se refleja desde la web. Al tratar de usarlo me dice que no es un id válido, entiendo que esto pasa por que no se refleja en el dashboard.

estoy usando la ID de aplicación y la llave pública, pero no se como obtiene el token de la tarjeta sin reflejarse en el dashboard.

createCardToken no genera

Hola!

Por alguna razón el token a veces se genera y la mayoría de las veces no :(

Lo estoy usando de esta manera:

handleCustomPayPress = () => {
   openpay.createCardToken({
     holder_name: 'John Doe',
     card_number: '4111111111111111',
     expiration_month: '02',
     expiration_year: '20',
     cvv2: '110'
   })
   .then((token)=>{
     console.log(token);

     openpay.getDeviceSessionId()
     .then((sessionId)=>{
       console.log(sessionId);
     });
   });

Unhandled JS Exception: TypeError: null is not an object

Hola que tal!

Acabo de instalar tu librería y al intentar iniciar el proyecto me encuentro con el siguiente problema:

image

Sospecho que quizá el subir de versión de RN afectó la forma en que se vinculan los NativeModules, pues si modifico el archivo index.js y para la asignación de los métodos nativos uso arrow function me deja iniciar el proyecto sin embargo sigo sin poder acceder a las funciones de tu librería.

No compatible con RN 0.60

Al instalar en versión de RN 0.60 o mayor arroja el siguiente mensaje. No realiza el autolinking por falta de podspec, por lo que la libreria no se instala en los Pods del proyecto iOS, y provoca el fallo del proyecto.

[!] use_native_modules! skipped the react-native dependency 'react-native-openpay'. No podspec file was found.
    - Check to see if there is an updated version that contains the necessary podspec file
    - Contact the library maintainers or send them a PR to add a podspec. The react-native-webview podspec is a good example of a package.json driven podspec. See
    https://github.com/react-native-community/react-native-webview/blob/master/react-native-webview.podspec
    - If necessary, you can disable autolinking for the dependency and link it manually. See
    https://github.com/react-native-community/cli/blob/master/docs/autolinking.md#how-can-i-disable-autolinking-for-unsupported-library

Recompilar para soportar Android 64 bits

Al generar el apk se genera el siguiente error:

Execution failed for task ':react-native-openpay:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
C:\tmp\cadi\react-native-openpay\intermediates\res\merged\release\values-v26\values-v26.xml:7: error: resource android:attr/colorError not found.
C:\tmp\cadi\react-native-openpay\intermediates\res\merged\release\values-v26\values-v26.xml:11: error: resource android:attr/colorError not found.
C:\tmp\cadi\react-native-openpay\intermediates\res\merged\release\values-v26\values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationClus

Esto es porque en mi app/build.gradle tengo:
compileSdkVersion 28
buildToolsVersion '28.0.3'

defaultConfig {
minSdkVersion 16
targetSdkVersion 28

Me desapareció el error al colocar los mismos parámetros en el build.gradle de este proyecto.

Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability

I'm using react-native-openpay on my project and tried to upload it into apple connect, I received an email with this issue: "ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability".
I searched on the node_modules folder with the command "grep UIWebView -r node_modules" and I got this output:
"node_modules/react-native-openpay/RNOpenpay/DeviceCollectorSDK.h:@interface DeviceCollectorSDK : NSObject
Binary file node_modules/react-native-openpay/RNOpenpay/openpay.a matches"
https://developer.apple.com/documentation/webkit/wkwebview/
I've tried replacing UIWebViewDelegate with WKUIDelegate on the DeviceCollectorSDK.h but seems that the openpay.a binary file still matches with UIWebView.
How can I generate again the openpay.a file? I'm really new with the IOS compilation.
And this is really what is not allowing me to upload to apple connect?

RN: 0.6
react-native-openpay: ^2.0.1
I'm using cocoapods but the library is linked manually because y haven't found how to add it with pods.

Thanks, and regards!

Crashing on run-android

I am running RN: 0.42 and your version 1.0.6 but when I run-android to install on the phone it always crashes on 98% predexdebug

Error:

  • What went wrong:
    Execution failed for task ':app:dexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 2

undefined is not an object

i got this error when i try to use this library

async createCard() { openpay.setup('xxxxxxxxxx', 'sk_xxxxxxxxxxxxxxxxx'); openpay.createCardToken({ holder_name: 'John Doe', card_number: '4111111111111111', expiration_month: '02', expiration_year: '20', cvv2: '110' }) .then(token => console.log(token)); }

screen shot 2017-09-29 at 3 24 51 pm

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.