adyen-ios icon indicating copy to clipboard operation
adyen-ios copied to clipboard

Xamarin support?

Open Drutol opened this issue 6 years ago • 12 comments

Hello,

We are trying to integrate Adyen into our apps and while on Android it was fairly easy the iOS is very problematic. Did you consider creating Xamarin bindings for this SDK or at least exporting swift components to objective-c because Xamarin as of now does not support swift libraries. We will either have to modify the code or jump somewhere else altogether. :(

Drutol avatar May 24 '18 06:05 Drutol

Hi @Drutol,

There are currently no plans to offer Xamarin bindings or expose the pure Swift components to Obejctive-C. In order to use the SDK with Xamarin, you'd have to write the Swift -> Objective-C bridge yourself. An example of that is shown in the Examples folder.

Kind regards,

Joost

joostvandijk avatar May 24 '18 09:05 joostvandijk

Hi @Drutol

I also facing this problem, can you share your work on Xamarin binding or a guide to get this done??

Thank you very much!

siuhleung7 avatar Jun 21 '18 04:06 siuhleung7

Hello @siuhleung7

I'm in charge of Android version so I can't comment much on iOS, as far as I know my colleague made bridge in swift exporting needed stuff. There were tons of issues to the point we had to incorporate LFS to our git repository for all dylibs. There should be Adyen Xamarin Library for iOS at least, we can get it to work on Android very easily but iOS is just.... ugh...

In the end it works, it's pure pain though...

Drutol avatar Jun 21 '18 05:06 Drutol

Thank for reply @Drutol

I will very happy if your colleague can share his work on GitHub... Yes, It is really painful and no appropriate guide to follow.

Hi @joostvandijk

Could you consider to give us a help to provide a Adyen Xamarin Library for iOS or at least a guideline to get this done?

siuhleung7 avatar Jun 21 '18 06:06 siuhleung7

Xamarin binding library for this library is ready for use on Nuget.org.

@joostvandijk I think Xamarin should be done by community, however, Objective-C must be supported natively instead of adding extra bridging code.

tuyen-vuduc avatar Jul 05 '18 03:07 tuyen-vuduc

Hi, we use binding like this: https://github.com/aalvarez255/xamarin-adyenCSE-binding its <NativeReference Include="Native References/AdyenCSE.framework"> it was working and stopped, we are getting on construction of ADYCard: System.Exception: Could not create an native instance of the type 'AdyenCSE.iOS.ADYCard': the native class hasn't been loaded. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false. with ThrowOnInitFailure false we have information on SuperHandle: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'ADYCard'.

Any idea what could happened?

WSudolPGS avatar Jan 30 '19 13:01 WSudolPGS

Hi @WSudolPGS,

We are not involved with the Xamaring binding. If you have any issues, it would be best to contact the maintainer of that repository/post an issue there.

joostvandijk avatar Jan 31 '19 10:01 joostvandijk

Another voice from me for Xamarin.iOS support on Adyen - you are the only provider with perfect use case coverage for us, but the lack of officially maintained at least Xamarin bindings library is a show stopper.

piotrojrzynski1 avatar Feb 04 '19 13:02 piotrojrzynski1

@WSudolPGS Did you make it work?

I Have another issue where on encrypting Credit Card I have console messages as follows:

result = -25300 Adding PublicKey to Keystore with fingerprint: MTAwMDF8QzQ0NUU5RkExO****** result = -34018 result = -25300 Problem obtaining SecKeyRef

Any thoughts?

danilkurkin1 avatar Apr 04 '19 14:04 danilkurkin1

@tuyen-vuduc Any chance to update Nuget NAXAM.Adyen.iOS lib to the lates?

danilkurkin1 avatar Apr 04 '19 14:04 danilkurkin1

Guys, did anyone manage to create the iOS binding?

My binding is in error when sending to Test Flight

douglasilva avatar Jul 24 '20 12:07 douglasilva

Hi @douglasilva

Unfortunately, we can't actively help you with this, but feel free to share your issues here - maybe I or someone from the community will be able to help/advice.

descorp avatar Aug 03 '20 16:08 descorp