I am trying to integrate google pay in my android app. I want to integrate google pay without any payment gateway in between (means DIRECT approach rather than PAYMENT_GATWAY token specification). I found DIRECT method integration code on official site. In that google asks for protocolVersion and publicKey as parameter and below i found that i can get my public key in my Google Pay Developer Profile. I searched for Google Pay Developer account but unable to found public key Anyone can help me to get public key for google pay DIRECT integration?
private static JSONObject getTokenizationSpecification() {
JSONObject tokenizationSpecification = new JSONObject();
tokenizationSpecification.put("type", "DIRECT");
tokenizationSpecification.put(
"parameters",
new JSONObject()
.put("protocolVersion", "ECv2")
.put("publicKey", "replace with public_key"));
return tokenizationSpecification;
}