I have a implicit grant flow javascript that is using the notifications API to monitor the my agent. This sis working successfully & i can receive & decode conversation events & perform hold/transfer/pause/resume/etc.
I'm trying to transfer an active call to a secure Flow for payment processing and return to the Agent when completed.
I'm using conversationsApi.postConversationParticipantSecureivrsessions to initiate the call, which uses /api/v2/conversations/--myConversationId--/participants/--MyAgentParticpiantId--/secureivrsessions
This API Call is successful, and the customer is transferred to my secure Flow and the customer can perform the flow tasks.
At the end of my secure flow I have a Return to Agent; However at this stage the call is dropped. In Architect on the Return to Agent it notes:
This action should only be used in secure call flows initiated by an agent and not a Transfer to Secure Flow action. See Help for more details.
From reading the help; I'm assuming that because I'm performing a transfer to secure flow, then that is why the Return to Agent fails & call disconnects.
So my question is what API call can I make to transfer a customer/initiate the secure flow that will return to the Agent?
Thank you