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

[BUG] class file for com.stripe.android.ui.core.BillingDetailsCollectionConfiguration not found #6533

Closed
Bme-Adib opened this issue Apr 13, 2023 · 6 comments
Assignees
Labels

Comments

@Bme-Adib
Copy link

Summary

When compiling the app I am getting this issue

error: cannot access BillingDetailsCollectionConfiguration
paymentSheet.presentWithPaymentIntent(clientSecret, new PaymentSheet.Configuration("ABC", new PaymentSheet.CustomerConfiguration(customerID, ephemeralKey)));
^
class file for com.stripe.android.ui.core.BillingDetailsCollectionConfiguration not found

Code to reproduce

Android version

Android API 33
Latest

Impacted devices

When compiling on all devices Virtual and physical

Installation method

installed through a gradle dependency

Dependency Versions

implementation 'com.stripe:stripe-android:20.22.0'

For kotlin:
./gradlew :dependencies | grep kotlin

For stripe-android:
./gradlew :dependencies | grep com.android.tools.build

For Android Gradle Plugin:
./gradlew :dependencies | grep com.stripe:stripe-android

For Gradle version:
./gradlew -v
-->

SDK classes

Video

Other information

I followed mutiple videos on how to do the integration but everytime I get this error

2023-04-13

@Bme-Adib Bme-Adib added the bug label Apr 13, 2023
@jameswoo-stripe
Copy link
Contributor

Hi @Bme-Adib

I tried to reproduce your issue without any success:

public class TestActivity extends AppCompatActivity {
    private PaymentSheet paymentSheet;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    private void presentFlow() {
        paymentSheet.presentWithPaymentIntent(
                "client secret",
                new PaymentSheet.Configuration(
                        "Merchant display name",
                        new PaymentSheet.CustomerConfiguration(
                                "customer id",
                                "key secret"
                        )
                )
        );
    }
}

Above is an example activity written in java using the PaymentSheet.Configuration constructor. Have you tried clearing your gradle cache, cleaned and rebuild?

@Robertoq7
Copy link

If I wanna use billingDetailsCollectionConfiguration I got this error:

Screenshot 2023-04-14 at 21 56 39

When will be it available? (In iOS SDK it's working)

@jameswoo-stripe
Copy link
Contributor

@Robertoq7, it will be available in Monday's release:

https://github.com/stripe/stripe-android/blob/master/CHANGELOG.md#xxxxxx---2023-xx-xx

@tillh-stripe
Copy link
Collaborator

Hi @Bme-Adib and @Robertoq7! We released 20.23.0 earlier today, but noticed that the issue persists.

We’ll be releasing 20.23.1 very soon to get this fixed. Sorry about the inconvenience.

@jaynewstrom-stripe
Copy link
Collaborator

Hi @Bme-Adib and @Robertoq7 we just released 20.23.1 with the fix, could you please give it a try and report back?

@Robertoq7
Copy link

Hi @Bme-Adib and @Robertoq7 we just released 20.23.1 with the fix, could you please give it a try and report back?

Hi @jaynewstrom-stripe! Working for me, thank you!

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

No branches or pull requests

5 participants