I am working on google pay integration.I tried with google pay test environment, added real card it is giving response but it has no token. Actually we are trying direct tokenization with production environment, My company provided public key and i added in google pay console it is showing inactive. Still i added public key and protocol version in android app but it is showing merchant is not enabled.
- Is it possible to get encrypted token in google pay test environment ?
- What is the process to get merchant Id for google pay.
code:
[![val DIRECT_TOKENIZATION_PARAMETERS = mapOf(
"protocolVersion" to "ECv1",
"publicKey" to DIRECT_TOKENIZATION_PUBLIC_KEY
)
private fun directTokenizationSpecification(): JSONObject {
return JSONObject().apply {
put("type", "DIRECT")
put("parameters", JSONObject(Constants.DIRECT_TOKENIZATION_PARAMETERS))
}
}]