Paynearme errors msg no capture

I am creating a data action to make payments on the PayNearMe platform using a secure IVR. If all the data is correct the Action returns me the data I need, but, if for some reason an error is generated I can't see it in Genesys. I tested using Postman creating a new payment and everything was fine and when I run it again it generates the following JSON

{
"status": null,
"payment": null,
"errors": null,
"success": false,
"msg": "The order has already been paid",
"statusCode": 409
}

This result is what I need to see in Genesys but it returns the following.

Any suggestions would help me a lot.

Regards

Unfortunately detailed data action errors are not returned to call flows. You can vote for that idea here:
https://genesyscloud.ideas.aha.io/ideas/INB-I-1498

If you need to solve this in the short term you could create a AWS Lambda / Google Function / Genesys Functions beta to make the call to PayNearMe in your own code, then always return a 200 response and indicate in the response body if the payment actually worked, or what error it returned.

--Jason

Hello

Thank you very much for your reply. I will evaluate the feasibility and costs of doing this development externally with the suggestions you gave me.

Thanks for the advice

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.