tink-go icon indicating copy to clipboard operation
tink-go copied to clipboard

Google Pay decrypt.

Open qoyanchoz opened this issue 1 year ago • 3 comments

Hi everyone! Maybe you can write some documentation or something. I've been unable to decrypt the payload Google sent me for 2 weeks now. I don't understand how to use your library because I can't find any examples. If any of you can help, like write an example to decrypt the payload. That would be great!

qoyanchoz avatar Jul 21 '23 09:07 qoyanchoz

Hey, guys! I'm also finding it difficult to use the library in my projects. I'm unable to decrypt a payload sent via Google Pay. If possible someone could write an example to decrypt the payload. I would be very grateful!

rafaeleupinheiro avatar Aug 24 '23 14:08 rafaeleupinheiro

I guess you would like to use GPay integration here: https://developers.google.com/pay/api/web/guides/resources/payment-data-cryptography in Go. Unfortunately, this part of Tink is only available in Java, here: https://github.com/tink-crypto/tink-java-apps/

tink-go does not support this. But you may be able to use this here: https://github.com/google-pay/tink-jni-examples/ This wraps the Java implementation. Note that this is not maintained by the Tink team and we can't help you with that.

juergw avatar Sep 06 '23 16:09 juergw

@juergw It will be useful to have official Google Pay token decryption implementation using this library.

kgiedrius avatar Sep 26 '23 06:09 kgiedrius