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
Solved! Go to Solution
I'm having this same issue, and would appreciate any useful pointers.
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.
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:
Thanks!
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.
Hi Stacey,
x-correlation id is: `1614284652_154_409276106_l73c018_VDP_WS`
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.