getStorefrontCountryCodeWith

fun Purchases.getStorefrontCountryCodeWith(onError: (error: PurchasesError) -> Unit = ON_ERROR_STUB, onSuccess: (storefrontCountryCode: String) -> Unit)

This method will try to obtain the Store (Google/Amazon) country code in ISO-3166-1 alpha2. If there is any error, it will return null and log said error.

Parameters

onSuccess

Will be called after the call has completed.

onError

Will be called after the call has completed with an error.