Cannot decrypt PAN (RsaOaep256): data hash wrong

Recordings
Newbie

Cannot decrypt PAN (RsaOaep256): data hash wrong

I am trying to implement the encryption using the RSA-OAEP-256 but everytime I encrypt my card and send it I get the error "Cannot decrypt PAN (RsaOaep256): data hash wrong" and I am using the RSA OAEP 256 method to encrypt! I've been at it for days if I can get some help that would be great thank you! 

2 REPLIES 2
Recordings
Newbie

Re: Cannot decrypt PAN (RsaOaep256): data hash wrong

I misstyped I am trying to encrypt the card number not decrypt^^

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Cannot decrypt PAN (RsaOaep256): data hash wrong

Hi @Recordings,

 

Please let us know which API you are using to encrypt the card.

Please also share the following details so we may investigate further:

  1. End Point URL
  2. Request Header
  3. Request Body
  4. Response Header (include the x-correlation-id)
  5. Response Body

Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.