Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

**Action Required** Bintray Sunset - Cardinal Commerce Credentials Update #249

Closed
sarahkoop opened this issue Jul 9, 2021 · 16 comments
Closed

Comments

@sarahkoop
Copy link
Contributor

The credentials for accessing the Cardinal Mobile SDK have changed, due to the sunset of Bintray.

Please update the credentials in your app-level build.gradle to the following:

repositories {
    maven {
        url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
        credentials {
            username 'braintree_team_sdk'
            password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
        }
    }
}

If you continue to have problems accessing the Cardinal Mobile SDK, we recommend upgrading to Drop-in version 5.2.2 or later.

@Gaurav-CTL
Copy link

@sarahkoop after upgrading to Drop-in version 5.2.2, still getting Could not find org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.5-2.
Required by: project :app > com.braintreepayments.api:three-d-secure:3.17.4

following are my project level & app level gradle file details -
project level gradle
buildscript {
repositories {
google()
mavenCentral()
maven {url "https://maven.google.com" }
maven {
url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
credentials {
username 'braintree_team_sdk'
password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
} } }
dependencies {
classpath 'com.android.tools.build:gradle:7.1.0-alpha03'
classpath 'com.google.gms:google-services:4.3.8'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20'
}}

app level gradle -
implementation "com.braintreepayments.api:drop-in:5.2.2"

@sarahkoop
Copy link
Contributor Author

@Gaurav-CTL Does it work if you move implementation "com.braintreepayments.api:drop-in:5.2.2" into your project-level build.gradle and the following into the subprojects block of your app-level build.gradle:

repositories {
    maven {
        url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
        credentials {
            username 'braintree_team_sdk'
            password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
        }
    }
}

@Gaurav-CTL
Copy link

isn't implementation "com.braintreepayments.api:drop-in:5.2.2" is a dependencies then how its can be declared in project level?
I tried adding the above things in subprojects block, throws same error.

@sarahkoop
Copy link
Contributor Author

Our braintree-android-drop-in project app-level build.gradle and Demo application build.gradle provide an example of this.

@Gaurav-CTL
Copy link

your reply is exactly what I said in last reply.
I too have refered the same project for reference but adding cardinal credentials in project level gradle still throws same error and demo app build is a app level gradle where drrop-in is used with implemention like "implementation project(':Drop-In')" but for public we did it - mplementation "com.braintreepayments.api:drop-in:5.2.2" as per guide in https://github.com/braintree/braintree-android-drop-in#readme

@sarahkoop
Copy link
Contributor Author

Ok to clarify - I expect this error when the cardinal credentials are within the buildscript block of your build.gradle file. I would expect them to be resolved then you move the credentials into an allprojects or subprojects block within the same top-level build.gradle. If you are still seeing the issue after that change, then I would need more information to investigate. Did you have a previous working integration that is now failing or is this error on initial setup? Could you provide your entire build.gradle file for further investigation?

@Gaurav-CTL
Copy link

Gaurav-CTL commented Jul 21, 2021

When can I expect this to get resolved? Any approx. time will help me plan our work.
Sure will share the info as you ask later.
We are in our intial setup but as we couldn't use any version except release V4.0.0 since it doesn't use 3Dsecure and have cardinal dependency.
But in that drop-in -> paypal ->com.braintreepayments.api.BraintreeBrowserSwitchActivity doesn't open browser

@sarahkoop
Copy link
Contributor Author

In this case, it seems like an integration issue rather than an SDK bug. Please reach out to our merchant support team and they can assist with troubleshooting your setup.

@Gaurav-CTL
Copy link

yes we have raised a ticket regarding this today.
Any estimates for cardinal credentials issues to get resolve?

@sarahkoop
Copy link
Contributor Author

We believe the cardinal credentials issue is resolved with the updated credentials included in the initial post in this thread. Merchant support should be able to help troubleshoot any issues related to your specific integration.

@Gaurav-CTL
Copy link

Ok thanks will check with merchant support team.
Thank you.

@dennis-sheil
Copy link

I am not upgrading, this is a new installation. I am doing exactly what the README says with the dependency on 5.2.2 and jfrog maven repository, and I get the same error as the person above, "Could not find org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.5-2."

One reason I know this is a problem with the maven server is this did work at the beginning of last week and I did not change a line of code, I just cleared my gradle cache so that it would have to download from maven again. Last week the maven repository was up and it downloaded, yesterday and today it will not download from the maven repository and gives the same error message as the other person gave and which I put here as well.

@sarahkoop
Copy link
Contributor Author

@dennis-sheil could you provide a snippet of your gradle dependencies?

@dennis-sheil
Copy link

My gradle dependencies are what is in the README

dependencies {
[...]
  implementation 'com.braintreepayments.api:drop-in:5.2.2'
}

As I said - when gradle is cached, it still works from when downloaded last week. Clear gradle cache and it can't download and can't work. No code was changed from working last week to this week, the only change is if gradle cache is cleared, it can not download from maven like it could last week. The code hasn't changed, but last week the maven repository was reachable, now it is not.

I use Android Studio, or command line gradle to compile. However, if I go to that maven url directly via a web browser and enter the given username and password, it says "Login has failed. Due to Incorrect username/password or locked user." It is inaccessible. As I just said, I have been using Android Studio (or command line gradle), but that repository is just not currently accessible like it was last week. I was able to download it with the same dependencies as last week, none of my code changed, just a gradle cache.

@sarahkoop
Copy link
Contributor Author

@dennis-sheil - the login error is expected, since the credentials are public they aren't for logging into the site. I have also tried to reproduce by clearing all gradle caches, and am still able to build and retrieve the Cardinal SDK with the above credentials.

Without more information, it is hard to determine the source of the issue. Do you have any other braintree dependencies in your gradle? Can you provide a snippet of your Cardinal credentials as well and the entire error message trace? Outside of gradle issues, has your location changed? We have received some reports of being unable to access the Cardinal SDK in certain countries.

@sarahkoop
Copy link
Contributor Author

Closing this issue since the update credentials have been provided, but please feel free to comment if you are experiencing an issue accessing the SDK with these credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants