checkout / frames-android

Frames Android: making native card payments simple
https://www.checkout.com/docs/integrate/sdks/android-sdk
MIT License
47 stars 32 forks source link

Google Pay tokenization returns "No value for signature" #226

Closed Hassanmohsaid closed 10 months ago

Hassanmohsaid commented 10 months ago

I am integrating with Google Pay and the payment succeeds, after that when I try to tokenize the payment using generateGooglePayToken method, it always returns exception: "No value for signature" although the tokenJsonPayload string format is correct as shown below (simplified) and contains the signature from google pay response.

{
   "type":"google_pay",
   "token_data":{
      "protocolVersion":"ECv1",
      "signature":"MEQCIDg6/kRoR8af1YTSVfkI9UovV2V+jV8YATG2rvL...juAowEl7rvzbPx8g==",
      "signedMessage":"{\"encryptedMessage\":\"32GByKqzr68CsQ2eYUnx1RJMheZAcp5QQ5LZnrrjymztdmeITfeHn4vLF1WhDjG2U9dxFDTrnOdJxjbHsUFsO/r...0+HR4GWH26ipyMgzF/TMrl3RHrYWM+WKAsJnx\",\"ephemeralPublicKey\":\"BH5/P7a009qJClyZm91+l...CIrEwEeL0Tp72/3NpwrEk\\u003d\",\"tag\":\"u2Mcf/ySnRLdM...FSuO4Nax0k8\\u003d\"}"
   }
}

Unfortunately, I couldn't debug the native code. How can this be solved?