PaystackHQ / paystack-android

Paystack SDK for Android. Accept payments on Android
Apache License 2.0
126 stars 101 forks source link

Error trying to upgrade Paystack SDK 3.0.1 to 3.0.9. #53

Closed ebukaprof closed 6 years ago

ebukaprof commented 6 years ago

Please i need help. I still see this error upgrading to paystack SDK 3.0.9. Even in 3.0.7. Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt.

My app config: minSdkVersion 16 targetSdkVersion 27 compileSdkVersion 27 buildToolsVersion "27.0.3"

Reasons for trying to upgrade

  1. card.validNumber() for card number always return false on any card number that is less than 19digits.
  2. When trying to test with 'PIN+PHONE+OTP validation', SDK doesn't show input screen for OTP on beforeValidate(Transaction transaction) after showing input screen for PIN and PHONE.
  3. Also what about PAY-BY-BANK if implemented in any SDK. I wish i can get this as it's in Paystack payment web pluggin.

Please i need help as soon as possible. Thank you.

ibrahimlawal commented 6 years ago

@ebukaprof sounds like something that can be fixed by reloading Android studio, invalidating cache. Let us know if that helps.

ibrahimlawal commented 6 years ago

Pay With Bank for SDK is still being groomed. To take advantage of PwB at this time, you should do a "standard" integration, showing the authorization url in a webview.

ebukaprof commented 6 years ago

@ibrahimlawal sorry I wasn't around . Now I will add 3.0.9 again and do as you suggested. Thanks. Concerning webview, I have done that before but authorization URL doesn't load on webview for some reasons I don't know about. I wish webview integration can work for me so I won't have anything to do with SDK. Plz guide me on how webview can work for me.

ebukaprof commented 6 years ago

@ibrahimlawal I have done as you said and i am still getting the same error even after allowing android.enableAapt2=true. Please view attached.

error_android_studio

ebukaprof commented 6 years ago

@ibrahimlawal Thanks it's now working well after updating to the latest Android studio and gradle and allowing android.enableAapt2=true. The next challenge now is to get the webview loading authorization url. Please i need your assistance. I have tried this which turn to be loading every other sites except integrated authorization url.

ibrahimlawal commented 6 years ago

Awesome! Glad that's sorted.

What webview? What auth url? I will need your help understanding the new challenge. Also, could you please start a new issue thread for that? I am closing this issue as resolved.