corbmx / react-native-openpay Goto Github PK
View Code? Open in Web Editor NEWAn Android and iOS Openpay sdk wrapper for React Native.
An Android and iOS Openpay sdk wrapper for React Native.
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)
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.
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);
});
});
Hola que tal!
Acabo de instalar tu librería y al intentar iniciar el proyecto me encuentro con el siguiente problema:
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.
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
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.
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!
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:
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
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)); }
openpay me lo marca como error.
Hago la importación y me la marca como si no se usara
import openpay from 'react-native-openpay';
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.