Nets-mobile-acceptance / Netaxept-Android-SDK

PiA Netaxept Android SDK is a library that provides the native In-App interaction to perform Netaxept payments directly from an app on Android devices while minimizing PCI DSS requirements for you.
31 stars 15 forks source link

How to fix deprecated code in MainActivity java file #80

Open cindyha opened 1 year ago

cindyha commented 1 year ago

Hi,

I'm working with flutter project and trying to upgrade pia-sdk to 2.7.2 for android. There are some deprecated warnings in MainActivity.java that I want to fix but I have no idea how to do it properly. I have checked sdk sample but the code is out of date which shows old version 1.3.0. Any help would be appreciated!

Screenshot 2023-05-12 at 09 07 40 Screenshot 2023-05-12 at 09 40 03 Screenshot 2023-05-12 at 09 39 50

Miss-PiA commented 1 year ago

Hi @cindyha,

We try to update the native sample application whenever we make some changes inside the SDK as it shows end users how to use certain feature of the SDK. In Flutter sample app, we just demonstrate how to wrap our native SDK which is the reason why it has not actively been updated with the latest APIs of the SDK.

We will try to update the Flutter sample app in the next release Meanwhile you can refer to the native Sample app and Flutter's official platform specific code guide to use the Pia SDK in your Flutter app on your own.

Thank you