Giter VIP home page Giter VIP logo

openpay-swift-ios's People

Contributors

astrocumbia avatar carloshe-perez avatar ezhgnu avatar hugohernandez avatar igrijalva avatar rbccavalcanti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openpay-swift-ios's Issues

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.

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.

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?

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

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

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

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!

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

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.

Any suggestion?
captura de pantalla 2018-07-08 a la s 15 09 17
captura de pantalla 2018-07-08 a la s 15 08 57

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

integrar sdk

Me pueden ayudar a integrar el sdk en xcode 12.1 me marca error cuando lo integro siguiendo la documentación

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

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

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 xcode 11.2

La version de swift no deja compilar en dispositivos con iOS 13 y en la ultima version de Xcode (11.2).

Cocoapods support

Please support cocoapods integration for your library, it would make the integration with 3rd party apps much easier.

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?

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

Captura de Pantalla 2019-04-26 a la(s) 12 43 45

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.

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

  1. openpay = Openpay(withMerchantId: MERCHANT_ID, andApiKey: API_KEY, isProductionMode: false, isDebug: true)
  2. 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.)

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!

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")

Captura de pantalla 2019-03-26 a la(s) 15 22 52
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.

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

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.

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

Screen Shot 2020-01-21 at 22 55 29

Screen Shot 2020-01-21 at 22 54 39

Screen Shot 2020-01-21 at 22 54 29

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.

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.

Actualicen la documentación

Sigue siendo la documentación muy escasa y no es muy clara; por ejemplo, al hacer los pasos que dicta su documentación, marca los siguientes errores. ¿Tienen alguna idea de cómo resolverlo?
Actualmente uso la Version 10.1 (10B61) de Xcode y Swift 4.2.

captura de pantalla 2018-12-13 a la s 13 30 17

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.

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?

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.

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

EXC_BREAKPOINT

He implementado el framework pero al tratar de abrir el model de agregar tarjeta me marca una excepción.
Nota: Estoy usando StoryBoard

(code=1, subcode=0x1040bc4e4)

Screen Shot 2019-05-28 at 12 49 50 (2)

Crear formulario personalizado

Buenas, hay forma de crear un formulario de la tarjeta personalizado? necesito desplegar uno con la imagen de la empresa, saludos

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.

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.