Encryption errors when testing Visa In-App Provisioning, Enroll Customer

Solved! Go to solution
NCL-82
Regular Visitor

Encryption errors when testing Visa In-App Provisioning, Enroll Customer

I've been testing against sandbox Enroll Customer api

https://sandbox.api.visa.com/universal/core/customers?apikey=<redacted>

I'm encrypting data for the following fields:  encMobileNumber, encEmailAddress, and encAddress using MLE python code found here: https://developer.visa.com/pages/encryption_guide.

The x-pay-token seems to be getting validated correctly, however i'm getting an error back suggesting that the encryption itself may be invalid:

 

{'errorResponse': {'status': 400, 'reason': 'invalidParameter', 'message': 'Invalid input parameter(s)', 'details': [{'location': 'encMobileNumber', 'message': 'Failed to parse/decrypt the value provided.'}, {'location': 'encEmailAddress', 'message': 'Failed to parse/decrypt the value provided.'}, {'location': 'encAddress', 'message': 'Failed to parse/decrypt the value provided.'}]}}

 

I'm using the key id generated on my project dashboard along with the corresponding server encryption cert.


Request headers:

 

headers = {
    "content-type": "application/json",
    "X-PAY-TOKEN": <redacted>,
    "keyId": <redacted>
}

 

 
Any help would be appreciated, thanks

9 REPLIES 9
tonietuk
Regular Visitor

Re: Encryption errors when testing Visa In-App Provisioning, Enroll Customer

I'm having this same issue, and would appreciate any useful pointers.

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Encryption errors when testing Visa In-App Provisioning, Enroll Customer

Hi @tonietuk@NCL-82,

 

Can you please share the x-correlation ID that is returned in the response header? Once we have the x-correlation ID, we'll be able to trace the error in our system and get back with an update. Thank you.


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.
NCL-82
Regular Visitor

Re: Encryption errors when testing Visa In-App Provisioning, Enroll Customer

Hi,

The X-CORRELATION-ID for my latest request is: 1614280642_583_781887584_l73c015_VDP_WS

Thanks
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Encryption errors when testing Visa In-App Provisioning, Enroll Customer

Hi @NCL-82@tonietuk,

 

Visa In-App Provisioning (VIAP) uses Field Level Encryption (FLE), not Message Level Encryption (MLE). Can you please send an email to developer@visa.com so we can provide further assistance on your VIAP implementation in sandbox? In your email, please share the follow information:

  • Company legal name? 
  • URL? 
  • Your full name?
  • Your role? 
  • Your email address associated with the company? 
  • What capabilities or functions will your application provide to your customers?  
  • Use Case Information? 
  • Who are your customers? 
  • Which countries will your application be used in? 
  • What will be your anticipated transaction volume for the first two years? 
  • Do you have an existing relationship with Visa? If yes, can you provide the name of your Account Executive or other contact? 
  • Are you a merchant, acquirer, issuer, or processor? 

 

Thanks!


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.
NCL-82
Regular Visitor

Re: Encryption errors when testing Visa In-App Provisioning, Enroll Customer

I don't have a lot of the information you are requesting to hand, this is an investigation we are carrying out to see if we can get the visa integration working before going further.

Can you send me a link to any visa documentation on field level encryption? All I can find are docs for message level encryption...
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Encryption errors when testing Visa In-App Provisioning, Enroll Customer

Hi @NCL-82@tonietuk,

 

Thank you for sharing the x-correlation ID. Please navigate here for the FLE being used in VIAP. In Sandbox, Visa will share the test keys that you can use for FLE. However we cannot share it in this public forum. Please do send us an email at developer@visa.com and provide some information about who you are and how you plan to use VIAP in your app. A VIAP product representative will then reach out to have an initial discussion before sharing the test keys. Thanks.


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.
tonietuk
Regular Visitor

Re: Encryption errors when testing Visa In-App Provisioning, Enroll Customer

Hi Stacey,

 

x-correlation id is: `1614284652_154_409276106_l73c018_VDP_WS`

amodarling
New Contributor

Re: Encryption errors when testing Visa In-App Provisioning, Enroll Customer

what was the exact solution you did. Can you please tell me i am facing the issue.
API_Products
Visa Developer Support Specialist

Re: Encryption errors when testing Visa In-App Provisioning, Enroll Customer

Hi @amodarling,

 

I posted the answer on 06-16-2023 03:39 PM in this forum post here: https://community.developer.visa.com/t5/Implementation-API-Sample-Code/Field-Level-Encryption-univer... 

Please click the link above to view the answer. 




Thanks,

Diana



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