Decrypt ` encrypted_ Is there a Java language version of the sample code for message?

Topic summary

Developers are seeking a Java implementation for decrypting encrypted_message in Shopify’s credit card payment apps. The discussion references Shopify’s official documentation on building credit card apps, which provides sample code for decrypting credit card information.

Key Issues:

  • Multiple users report difficulties implementing the HKDF (HMAC-based Key Derivation Function) to obtain the cipher key needed for decryption
  • The official documentation appears to lack Java-specific examples

Partial Solution:
One participant (ravinder84) mentions adding a decryption API directly within their onboarding app using the documented sample as reference, though specific implementation details weren’t shared.

Status: The thread remains open with ongoing requests for clarification about which specific API or approach successfully resolved the decryption challenge. No complete Java code solution has been publicly shared.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

Decrypt ` encrypted_ Is there a Java language version of the sample code for message?

Did you find any solution for it - https://shopify.dev/docs/apps/payments/credit-card/build-credit-card-app?framework=remix#decrypt-the-credit-card-information. Tried but getting discrepancy at HKDF key derivation function to get cipherKey.

did you find a solution for this?

hope you can help

We have added API for decrypting card details in the onboarding app itself, using the given documented sample.

Hello, can you be more specific ? What API did you use ? I have the same issue and I don’t find the solution.

Thank you in advance.