openpay-swift-ios's People
Forkers
steeledward eduardoparadoja astrocumbia igrijalva rbccavalcanti condesa marcinax freshy969 jagatheshsparkout aosc920411 carloshe-perez danielm2402openpay-swift-ios's Issues
Migrate to Swift 5.0 please
Localization support -- Spanish, Mexican language support
I went through the examples and documentation. I am able to make successful transactions. The issue I am facing is for now way to have spanish localization in SDK.
Incompatible versions of Swift
Could you please recompile this library using the latest Swift and Xcode?
I'm using Xcode 9.4 (latest - 9F1027a) and Swift 4.1 and cannot use this library with my project.
KDataCollector Collector timed out: Web Collector
Buenas, estoy tratando de implementar el método createDeviceSessionId pero siempre que ejecuta el KDataCollector, me devuelve ese error. Mas específicamente [Client] Failure to deallocate CLLocationManager on the same runloop as its creation may result in a crash
Esta es la función relevante al problema:
func setupOpenpay() { self.openpayObject = Openpay() self.openpayObject.createDeviceSessionId(successFunction: { (sessionID) in self.sessionID = sessionID }) { _ in } }
Incluso aumenté el tiempo del timeout mediante KDataCollector.shared().timeoutInMS = 300000
pero sigue dándome el mismo error.
Module compiled with Swift 4.2 cannot be imported by the Swift 5.0 compiler
Actualicen la documentación
createTokenWithCard
Al intentar crear el token de la tarjeta se genera un error interno en la libreria de OpenPay (SDK-v2.0.9)
Proceso que estoy relaizando
- openpay = Openpay(withMerchantId: MERCHANT_ID, andApiKey: API_KEY, isProductionMode: false, isDebug: true)
- openpay.createTokenWithCard(address: OPAddress(with: addressDictionary), successFunction: successToken, failureFunction: failToken)
Eror mostrado:
Fail Token...
1001 - The operation couldn’t be completed. (com.openpay.ios.lib error 1001.)
Problems with iOS 11
The buttons for "Cancel" and "Continue" in the form don't work in devices with iOS 11. I test it in devices with iOS 10.3.3 and works normally.
El sdk no tiene soporte para iOS 14 no compila y no puede enviar mi app a AppStore HELP!!
Crear formulario personalizado
Buenas, hay forma de crear un formulario de la tarjeta personalizado? necesito desplegar uno con la imagen de la empresa, saludos
can't get CVV
i am fetching all card details and i am getting all card details like number, expMonth, expYear and all but i can't get CVV. its returning blank ("").
card is OPToken Object
i am getting as a ==> card.card.cvv2
while card.card.number and others are working.
Module compiled with Swift 4.1.2 cannot be imported by the Swift 4.2 compiler
your library doesn't work in Xcode 10 with swift 4.2
Get OPToken by creating the OPCard object manually, skipping the form
The Objective-C SDK allows us to create a token with an OPCard object as a parameter, whereas in the Swift SDK the same function receive an OPAddress object and cannot be called without displaying the form before.
Is there any chance to reach the same flow as the Objective-C SDK, by creating the token directly with an OPCard object and skipping the form?
In the project in which I'm trying to integrate the SDK, I don't want the user to re-enter the card data, that's why displaying the form is something I would prefer to avoid.
Thanks in advance!
Dispositivo inválido
Hola,
Tengo un problema con el device_session_id y las transacciones. El device_session_id lo estoy generando con la última versión publicada para swift, tal y como lo mencionan en la documentación, de la siguiente manera:
public func createSession() {
let openpay: Openpay = Openpay(withMerchantId: MERCHANT_ID, andApiKey: API_KEY, isProductionMode: false, isDebug: false)
openpay.createDeviceSessionId(successFunction: successSessionID(sessionID:), failureFunction: failSessionID(error:))
}
func successSessionID(sessionID: String) {
print("SessionID: \(sessionID)")
}
func failSessionID(error: NSError) {
print("\(error.code) - \(error.localizedDescription)")
}
Esto genera un id como lo siguiente:
020ED45F2F4CS60D86FDD068755FC06A
Sin embargo, al consumir su API, se hace la transacción de manera exitosa, pero en el dashboard aparece como Dispositivo inválido, adjunto evidencia
Como nota adicional, ya hice pruebas generando el device_session_id con la librería de Objective-C y con la librería de Swift, en ambos casos con el mismo resultado.
Barra de navegación duplicada en form de tarjeta
Minimum deployment target of iOS 12
La versión mas reciente para soportar Swift 5.3 (v2.0.13) tiene iOS 12.0 como minimum deployment target, esto nos afecta mucho porque aun tenemos clientes con iOS 11, podrían cambiarlo para quedar en iOS 10.3 como anteriormente estaba?
how to create a card token for 'n' number of transection
here openpay can support for any number transaction using saved card .? like stripe and other payment getaway ?
Error al importar la libreria, versiones de swift incompatibles
Hola, he integrado anteriormente la librería y funcionaba muy bien, pero en días posteriores actualicé mi versión de Xcode para poder compilar en la nueva versión de iOS, por lo que al querer compilar en esta me apareció el error:
error: The following binaries use incompatible versions of Swift: /Users/user/Library/Developer/Xcode/DerivedData/App-bynbdrqivtjxpbfuifksjmgqwiwj/Build/Products/Debug-iphoneos/App.app/App /Users/user/App/Openpay.framework/Openpay
Versión de Xcode: Version 10.2.1 (10E1001)
Versión de Swift: Swift 4
Versión de OpenPay: SDK-v2.0.3
Lanza un error en el loadCardForm
Estoy tratando de utilizar el loadCardForm pero me regresa un error y truena (todo lo demás funciona perfecto):
Lenguaje: Swift v. 4.0
CÓDIGO:
var openpay: Openpay!
openpay = Openpay(withMerchantId: MERCHANT_ID, andApiKey: API_KEY, isProductionMode: false, isDebug: false)
openpay.createDeviceSessionId(successFunction: successSessionID, failureFunction: failSessionID)
openpay.loadCardForm(in: self, successFunction: successCard, failureFunction: failCard, formTitle: "Openpay")
UPDATE:
Cree otro proyecto para probar el framework e hize exactamente lo mismo que con mi proyecto al que quiero integrar openpay y funciona bien, no sé si se deba a que estoy usando navigation, no sé si sea por los pods que estoy utilizando pero sigue tronando.
Soporte para Swift 5.3
¿Podrían actualizar su SDK para soportar Xcode 12? Al intentar compilar marca el siguiente error:
Module compiled with Swift 5.2 cannot be imported by the Swift 5.3 compiler
Gracias
Problems with the versions
I updated from version one to two and everything work fine but me I try to upload my app to the apple store I got an error that there was a problem with the linking of the library. So after some adjustment on the build setting I still could't build my project because 'openpay' wasn't recognize.
Then I removed the library and add the OpenPlay.framework I still got the same error when trying t uploaded to the App Store.
So I just integrated the framework as an static framework I it recognize the library but got an error in this line:
openpay.loadCardForm(in: self, successFunction: successCard, failureFunction: failCard, formTitle: "Openpay")
Here is my implementation:
func successSessionID(sessionID: String) {
self.sessionID = sessionID // Receive in a variable the unique SessionID generated
openpay.loadCardForm(in: self, successFunction: successCard, failureFunction: failCard, formTitle: "Openpay")
}
Since I couldn't make It work I commented the line an got this error:
I have read extensible on the error on the web and try so many answers for it that I found on stack overflow and I still not able to make it work.
Module compiled with Swift 5.3 cannot be imported by the Swift 5.3.1
Cant' open a compile with xCode 7.3.1
I am trying to integrate Openpay.xcodeproj file in my current workspace on xcode 7.3.1 but it says couldn't open file
es : Estoy tratando de integrar el archivo Openpay.xcodeproj en mi espacio de trabajo actual en xcode 7.3.1 pero dice que no se pudo abrir el archivo
Problemas con variaciones en el idioma
Enviroment:
Swift 4.0 Xcode 10.2.1 Framework 2.0.6
Issue:
Truena el loadCardForm cuando tengo otra variacion del idioma español, entiendo que el valor por default en el que está el framework es ingles y español(méxico) pero qué pasa con los usuarios con otras variaciones del español o incluso del ingles?
Soporte par Swift 5.3.1
Hola, podrían actualizar el SDK para soportar Swift 5.31. Al intentar compilar el proyecto genera el siguiente error:
Module compiled with Swift 5.3 cannot be imported by the Swift 5.3.1
Card Form
Hola, hay una forma en la cual no necesite implementar el loadCardForm? o afuerzas tengo que usarlo? lo que pasa es que yo ya tengo mi forma perzonalizada y quisiera implementar el tokenwithcard pero recibe un parametro de address
loadCardForm
Tengo un proyecto donde intento integrar la librería, todo parece ir bien pero el formulario no se muestra, tampoco muestra algún error informando que algo esté mal.
No funciona con xcode 11.2
La version de swift no deja compilar en dispositivos con iOS 13 y en la ultima version de Xcode (11.2).
Error Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler
Me aparece este error al querer compilar en xcode 11.2. Cuando liberan actualización?
Unexpected found nil
Implemente la version 2.0.7 en el Xcode 10.2.1, trabaja perfectamente incluso el cardView con el manejo de los saltos de los texfield que antes daban problemas o se veían extraños. ahora al implementarlo en conjunto con el GMSAutocompleteViewController para el completamiento de las direcciones del Google Maps, este da error, y debe ser el mismo caso de las versiones anteriores donde se tiene un observer de notificación en la clase Openpay para el teclado: " NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillBeHidden(notification:)), name: UIResponder.keyboardWillHideNotification, object: nil)" la cual responde al la función:
@objc private func keyboardWillBeHidden(notification: NSNotification) {
let contentInsets = UIEdgeInsets.zero
self.scrollView.contentInset = contentInsets
self.scrollView.scrollIndicatorInsets = contentInsets
}
Y siempre que se haga un post a esta notificación se va ejecutar esta funcion, siempre retornado un error:
"Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value", claro esta porque no existe ningún scrollView para asignarle el contentInset solo en caso de que este presenta la vista "CardView".
Tendría que solucionar esto de alguna manera, sugiero agregar ese observer solo cuando este presente la vista CardView y removerlo cuando este se oculta, aquí hay un post sobre esto
https://stackoverflow.com/questions/5624975/removing-all-notification-observer-from-a-single-place.
Si es posible hacerlo cuanto antes ya que no he podido compilar mi app con la version 2.0.7 ya que no hay manera de solucionarlo, debido a que todo esta dentro de un framework...
Saludos
UIWebView deprecated
I was trying to upload my app to the AppStore but received the next mail:
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview). | ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview). |
---|---|
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview). |
The lastest version of this SDK is still using UiWebView, which prevents us from uploading new binaries.
Swift 5.3.1 Support
I can't use the SDK in Swift 5.3.1
EXC_BREAKPOINT
Could not find module 'Openpay' for architecture 'arm64'; found: i386, x86_64
Could not find module 'Openpay' for architecture 'arm64'; found: i386, x86_64
Tengo este error al generar el archive ya eh puesto el framework para os y me sigue ocasionando ese error
OpenPayExample
I found a crash in your example.
Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value
MainViewController.swift line 143
test in:
simulator iPhone 7/8
iOS 11.2
How to customize form UI or avoid to use embedded card form?
We want to avoid to use the embedded card form, so it's not needed to force clients to use it. You should provide a more flexible API to create a token without form UI to those architectures where handle custom forms.
You could provide a way to send a card model and return the OpToken
without to force to use the UI as same as objective c sdk does.
integrar sdk
Me pueden ayudar a integrar el sdk en xcode 12.1 me marca error cuando lo integro siguiendo la documentación
Error on swift 5.3.1
Please update the library, more than 2 weeks thats swift version was released and you not can update yet!
Compilación de librería Swift 4
Al usar la librería me marca el siguiente error:
./openpay.framework/openpay compiled with older version of Swift language (4.0) than previous files (unknown ABI version 0x06) file './openpay.framework/openpay' for architecture x86_64
podrían dar solución, estoy a unos pocos días de implementar la app a producción, saludos
Cocoapods support
Please support cocoapods integration for your library, it would make the integration with 3rd party apps much easier.
Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compile
Estoy teniendo este error: Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compile Con la nueva version de Xcode 11. ¿saben si van a sacar un SDK actualizado, o como puedo lograr que swift 5.1 lo lea?
Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler
Apple made me update Xcode in order to deliver applications to the store, so the Openpay sdk no longer works.
Could you please release a new version compiled with the newest compiler?
Thanks!
Actualicen la documentacion
Tengo realmente varias criticas.
La primera, dice que debo descargar un SDK 2.0 supuestamente zip y que es un framework, lo cual no existe en ningun lado de esta pagina.
Si descargo las clases de como fue armado, realmente hay muchas cosas que tienen unwraps no seguros...
La distribucion al ser de esta manera, si hay una actualizacion es un dolor de cabeza... Tendrian que utilizar Cocoapods no les tardaria mas de 30 minutos migrarlo...
Hay varios metodos que se utilizan que ya quedaron deprecados en swift 4, esos tienen que actualizarlos.
En concreto, tienen alguna documentacion actualizada para seguir? no entiendo como puede ser tan poco serio un SDK de una empresa que esta buscando crecer.
Gracias.
No funciona con macos Catalina
No funciona con macos Catalina y xcode 11 porque ya no tiene soporte para aplicaciones de 32 bits es por eso que regresa el error:
Could not find module 'Openpay' for architecture 'x86_64'; found: arm64, arm, armv7
¿Cuando le van a dar compatiblidad para macos Catalina y xcode 11?
Not Supporting 64-bit ?
app crash
I am using openpay framework universal version (SDK V 2.0.2).
swift version 4.2
my app goes crash when I uses this following method:
openpay.loadCardForm(in: self, successFunction: successCard, failureFunction: failCard, formTitle: "Openpay")
I am not getting any type of error in the Xcode console.
So Please check this issue and give me any solution regarding this issue ASAP.
Could not find module 'Openpay' for architecture 'arm64'; found: i386, x86_64
Cuando trato de hacer el archive para subir a tienda me marca este error, estoy utilizando la ultima versión 2.0.4
Could not find module 'Openpay' for architecture 'arm64'; found: i386, x86_64
Could not find module 'Openpay' for architecture 'armv7'; found: i386, x86_64
dyld: Library not loaded: @rpath/Openpay.framework/Openpay Referenced from: /var/containers/Bundle/Application/BC9F1779-AD36-4B21-898B-93FF8A247F41/BBB.app/BBB Reason: image not found in device xcode 9.2,iOS-10.13.3
Add card form jump cursor behavior
Hi,
I've been trying the default Add card form and I'm facing with a problem. When I test with sandbox credit card such as 4242 4242 4242 4242, the cursor just jump to CVV field.
This error does not occur with all of the sample cards. I tested with real credit cards, and this error happens with Bancomer, so, I think that is important to solve this bug because user experience with this jump is really bad.
I've been testing with latest version v2.0.0
Unclear documentation
Hello there. I was trying to integrate the SDK in my current project and I reading the doc says that I need to add a Headers Folder which I couldn't find anywhere in the project. It would be really helpful to have some assistance to integrate the sdk since Im unable to continue with the integration.
Can we be more specific about what Headers is and where to find them?
I think this documentation was based on the other project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.