In android Java has this error: inflating class PaymentButtonContainer
Josepharaoh
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Feb-04-2023
08:21 PM
Hi, I'm working on the PayPal integration on android. Everything is good till I run the app. I get this error.
"Error inflating class com.paypal.checkout.paymentbutton.PaymentButtonContainer"
I believe the problem come in the PaymentButtonContainer xml. I have the latest implementation in the Gradle file.
implementation'com.paypal.checkout:android-sdk:0.8.8'
Can anyone help me?
1 REPLY 1
Josepharaoh
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb-04-2023
09:18 PM
I find the solution. I need to put the
PayPalCheckout.setConfig
in the MainActivity
paymentButtonContainer.setup
in a new Activity.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.