hey folks, I’m implementing google pay in the app ...
# android
o
hey folks, I’m implementing google pay in the app and I found the GooglePay button jetpack library, https://github.com/google-pay/compose-pay-button, but regarding
allowedPaymentMethods
I know how to build it but not quite sure why it’s necessary, because the button shows even with an empty json array
[ ]
- any pointers please
Copy code
PayButton(
    modifier = Modifier
        .fillMaxWidth()
        .padding(AppTheme.dimensions.smallSpacing),
    onClick = {},
    allowedPaymentMethods = "[]", <---------
    theme = if (isSystemInDarkTheme()) ButtonTheme.Dark else ButtonTheme.Light,
    type = ButtonType.Buy,
)
not kotlin but kotlin colored 2
p
This has some helpful insight https://www.youtube.com/live/ekDlFqR84WQ
o
thanks!