When your secure flow transferred to the external number, as soon as the external system answered the secure flow terminated. This actually explains why you have audio of that portion of the call. While a caller is in a secure flow, recording is disabled. However when they get out of it, recording resumes (assuming you have it enabled). There is a setting on your trunk
Continue on External Bridged Transfer trunk if you want to keep recording a call once Genesys Cloud has transferred it to an external system. You should probably disable that option since that portion of the call shouldn't be recorded.
tl;dr The secure flow can't return the caller to the agent b/c the secure flow isn't running anymore.
Options:
1) Have your external system transfer the call back to Genesys Cloud (getting them to the same agent is very tricky). They can't go back to the secure flow. They would just transfer to a number for Genesys Cloud, and you would need to find a way to determine which agent to send that caller to. Use things like UUI data and preferred agent routing. Also keep in mind the agent might be on a new interaction.
2) Does your external system have an api for making payments? If so you could use secure data actions to make the payment. The secure flow would collect any necessary information from the caller then use the secure data actions to make the payment. Then the secure flow can return the caller to the agent.
------------------------------
Melissa Bailey
Genesys - Employees
------------------------------