Payment failed: 6: BuyFlow UI needs to be shown when trying to set up a google pay method in android
I’m trying to implement a google pay method of paying in my android jetpack compose app, but I get this error “Payment failed: 6: BuyFlow UI needs to be shown” when I run my code. The message is clear and I thought I was doing that by calling this line “val task = paymentsClient.loadPaymentData(paymentDataRequest)”, but it seems it doesn’t work.