Private payment key NOT decrypting receipts preventing us from associating a subscription with users

To enable seamless transactions within our Google Play app, it is imperative to generate a Private Payment key through the Google Cloud Console within the Service account. Here are a few screenshots showcasing our current setup:

--> https://drive.google.com/file/d/1gf26IZjFPVqgf03dbFTHfseOi5ur8SOI/view?usp=sharing

--> https://drive.google.com/file/d/1H00R2_fDw2eO3mVyolVQzVXVQGMVAAEE/view?usp=sharing 

 

The challenge we currently face is that while payments are processed successfully within the application, there seems to be an issue with the configuration of the keys. Consequently, we encounter errors in decrypting the receipts, preventing us from associating a subscription with the respective user. An illustrative example of the code we are currently dealing with can be found here:
--> https://drive.google.com/file/d/1GzO9HDAOPMo1rGOSODz-LsKI0SZC-Og4/view?usp=sharing 

Any ideas why our private payment key isn't sending back the correct information?

0 1 68
1 REPLY 1

HI @teamibiana ,

I have checked the screenshots that you've uploaded, it doesn't seem to include the error that you've mentioned in decrypting the receipt. It's challenging to isolate the exact cause of the problem. But you can consider checking the following areas to fix this issue:

1. Was the private payment key you are using correctly configured in your GCP project? Double-check the key settings, permissions, and associated services.

2. Was key rotation enabled? Are using the correct version of the private payment key?

3. Was your private payment key expired? If the key has expired, you might need to generate a new key and update your application to use the new key.

You can check and refer to the following documentation below:
1. https://cloud.google.com/kms/docs/key-rotation
2. https://cloud.google.com/iam/docs/keys-create-delete

If these general troubleshooting and checking won't work, it would be best if you will be contacting the billing team for further assistance.