How to get public key in Google pay integration with Direct token specification approach

Highlighted
Regular Visitor

How to get public key in Google pay integration with Direct token specification approach

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 the DIRECT method integration code on the official site. In that google asks for protocol version and public key as a 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 the 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;

 

_____________________________________________________________________________________________

How to get public key in Google pay integration with Direct token specification approach telldunkin

 

1 REPLY 1
Highlighted
Visa Dev Moderator

Re: How to get public key in Google pay integration with Direct token specification approach

Hey @RecordTadpole22,

 

If you're interested in payments, please see this link for our payment methods APIs and let us know which one fits your use case - https://developer.visa.com/site/payment-methods

 



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Thanks,
Diana