square / in-app-payments-android-quickstart

In-App Payments Quick Start Sample Android App
Apache License 2.0
42 stars 41 forks source link

[QUESTION] SDK download for InAppPayments? #24

Closed LeoJHarris closed 3 years ago

LeoJHarris commented 3 years ago

Hi there we are developing an android app in Xamarin that needs to interface with square API's and since there are currently no plugins in Xamarin we are developing binding libraries per iOS and android. Regarding android is there a link that we can clone the repo of the android SDK for the inAppPayments so we can build the jar/aar of the SDK?

StephenJosey commented 3 years ago

You can see the components of the In-App Payments SDK here: https://sdk.squareup.com/public/android/com/squareup/sdk/in-app-payments/ (this is a public URL, so you should have access). Please let me know if you have additional questions or concerns!

LeoJHarris commented 3 years ago

Hi again sorry for the messages but our app cannot currently resolve Lsqip/internal/SqipActivityDebounce do you know where this is being referenced in your SDK?

Our full exception looks like this:

Time    Device Name Type    PID Tag Message
03-09 16:28:44.202  pixel_2_pie_9_0_-_api_28    Info    19664   MonoDroid   java.lang.NoClassDefFoundError: Failed resolution of: Lsqip/internal/SqipActivityDebouncer;
    at sqip.internal.CardEntryActivity$Companion.startActivity(CardEntryActivity.kt:157)
    at sqip.internal.CardEntryActivity$Companion.start(CardEntryActivity.kt:129)
    at sqip.CardEntry.startCardEntryActivity(CardEntry.kt:39)
    at sqip.CardEntry.startCardEntryActivity$default(CardEntry.kt:37)
    at sqip.CardEntry.startCardEntryActivity(Unknown Source:3)
    at crc64a7ddb02b6f858c09.MainActivity.n_onCreate(Native Method)
    at crc64a7ddb02b6f858c09.MainActivity.onCreate(MainActivity.java:64)
    at android.app.Activity.performCreate(Activity.java:7136)
    at android.app.Activity.performCreate(Activity.java:7127)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6669)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
StephenJosey commented 3 years ago

Hi @LeoJHarris that should be inside of the in-app-payments artifact. It’s used in the card-entry artifact

LeoJHarris commented 3 years ago

@StephenJosey found that shortly after making the post. Thanks!

StephenJosey commented 3 years ago

That's an optional artifact for BuyerVerification which is used to verify our nonces from CardEntry for the Secure Customer Authentication requirement in the UK

LeoJHarris commented 3 years ago

@StephenJosey appreciate the intel sorry lastly as dagger is giving me an exception currently which version of dagger is being used for 1.5.0, I assume 2.30.1 as per the pom files but on your public SDK url you have public-android/com/squareup/dagger2/dagger/2.19.1

The dagger in the poms is also from com.google.dagger while the dagger in the SDK url is com.squareup.dagger2 so trying to understand which one should be referenced.