Mangopay / mangopay2-nodejs-sdk

Node.js SDK for MANGOPAY
https://www.npmjs.com/package/mangopay2-nodejs-sdk
MIT License
51 stars 38 forks source link

Not Returning Proper RefusedReasonMessage for KYC Documents #416

Open AdnanR-ainbow opened 2 months ago

AdnanR-ainbow commented 2 months ago

When retrieving KYC documents using the MangoPay SDK, the RefusedReasonMessage field is not populated correctly. This field returns an incorrect or null value in several instances even when the KYC document has been refused for a specific reason. This issue is critical as it prevents us from properly informing users about the reasons for their KYC document rejections.

Steps to Reproduce:

Submit a KYC document that will likely be refused (e.g., Registration proof has Expired). Could you wait for the document to be processed and a refusal decision to be made? Retrieve the KYC document using the MangoPay SDK. Observe that the RefusedReasonMessage is incorrect (Refused Reason) or null.

In the dashboard, it shows the proper reason but when fetching via sdk it's giving Refused Reason instead if the actual reason.