Skip to content
Advertisement

Stripe CardInputWidget not showing on the new update

After upgrading the stripe implementation CardInputWidget doesn’t appear anymore :/

Error : Error inflating class com.stripe.android.view.CardInputWidget

grandle implementation:

implementation ‘com.stripe:stripe-android:16.9.0’

Xml code for payment dialog :

JavaScript

code:

btnStartPlan.setOnClickListener(new View.OnClickListener() { showPaymentDialog();} …

dialog.setContentView(R.layout.dialog_payment);

Advertisement

Answer

This problem is Solved, the problem was that when I change the version of ‘androidx.appcompat:appcompat:’ to 1.3.0 or 1.4.0-alpha02 the CardInputWidget of stripe payment is not inflated in the layout and cause a crash,

the new version of ‘com.stripe:stripe-android:16.10.2’ solve this issue.

Please, check this link: https://github.com/stripe/stripe-android/issues/3770

happy coding.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement