PayWithGoogleUtils

Public utility class for common Pay with Google-related tasks.

Functions

Link copied to clipboard
fun getPriceString(price: Int, currency: Currency): String
fun getPriceString(price: Long, currency: Currency): String

Converts an integer price in the lowest currency denomination to a Google string value. For instance: (100L, USD) -> "1.00", but (100L, JPY) -> "100".