tink-crypto/tink

cannot verify signature

dreamlin987 opened this issue · 3 comments

Why do I verify the data returned after Google payment that does not go through the grid successfully, and it always fails to verify the signature, so how to check or solve it?

String decryptedMessage =
new PaymentMethodTokenRecipient.Builder()
.fetchSenderVerifyingKeysWith(
GooglePaymentsPublicKeysManager.INSTANCE_TEST
)
.recipientId("GooglePayPasses")
.protocolVersion("ECv2")
.addRecipientPrivateKey("MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0waXXXXXX")
.build()
.unseal(tokenData);

juergw commented

Please be more specific in what the problem is, otherwise we can't help you.

juergw commented

Please check the documentation on:
https://developers.google.com/pay/api/web/guides/resources/sample-tokens

I hope that helps.