function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Helen VicoHelen Vico 

Visualforce code web callout to external webservice to PAUSE call recording from call agent when they press button to enter Credit Card info

Require code for a call out to software webservice to PAUSE call recording from a call agent when they press a button to enter Credit Card info. This is for Salesforce Classic.

When the Donor Team who is on the Contact Record Page takes the Credit Card (CC) information, they will press a button on Contact Record that will take them to a pending page URL to fill out CC info. When they enter the CC details, this should then drive the change on the software webservice to stop the recording. There is currently a code on the page to do this (internal call out) but it does not do it – it needs to be an external call out. Apparently, the old one does not need to be deleted as it will not interfere with a new one.
There is a single log in to Salesforce from Call Centre so how I link the Call Agent ID/Ext with the call out (when all call agents log in with one SINGLE login)


There is NO NEED to do a web call back IN again to switch recording back on again when credit card information is complete as there is already code within the Visualforce page to do this.
When they close the CC URL page, they will return to Contact Page. (This is already operating OK so no need to work on this)
This is the current Visualforce Code:

<apex:commandButton rendered="{!AND(mode<>'activity', mode<>'dd',NOT(OR(callCenterUser, callCenter)))}" value="Save and New" action="{!doSaveAndNew}"/> <apex:commandButton rendered="{!AND(OR(callCenterUser, callCenter),mode='resource')}" value="Save and New" action="{!doSaveAndNew}"/> <apex:commandButton rendered="{!AND(OR(callCenterUser, callCenter),mode='cc')}" value="Save and Add Direct Debit Details" action="{!doSaveAndDD}"/> <apex:commandButton rendered="{!AND(mode<>'activity', mode<>'dd',NOT(OR(callCenterUser, callCenter)))}" value="Save and Add Further Details" action="{!doSave}"/> <apex:commandButton rendered="{!AND(OR(callCenterUser, callCenter), mode='cc')}" value="Save and Make Credit Card Payment" action="{!doSave}"/> 'activity',mode'resource',callCenter)}" value="Save and Add Direct Debit Details" action="{!doSaveAndDD}"/> -->