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.
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.