Voids
The screenshots and names of Components and Fields were taken on an installation that was using the ‘Accept Blue’ gateway. Other gateways screens and components will be similar but a bit different, and the names of the fields will be specific to the gateway you are configuring for (eg. ‘Authorize.net Credit Card Fields Component’ instead of ‘Accept Blue Credit Card Fields Component’)
Required Data
The Transaction ID
A payment, or the payment gateway log record attached to a payment.
Named Credential
API Name of the Credential you created with the Configuration steps above.
This will generally be constant, but can vary if you are using Paytram with multiple gateway accounts.
Logical next steps in your Screenflow
Update the payment record to indicate that the payment was voided.
Show the error message response
Voids
To Void a payment, create a Screen Flow using the Void/Refund Transaction Subflow. First you must retrieve the Transaction ID from the record in which it is stored, usually the Payment Record that was created at the time of the transaction. Then, pass that transaction ID to the Void/Refund subflow.
- In your Flow, use the Get Records component to retrieve the payment record ID. 
- Add the Void/Refund Transaction Subflow to the canvas. 
- Map the following fields: 
- Info_DoRefund: Toggle OFF. This is only used for refunds, not Voids. 
- Info_NamedCredential: Select to include and type ‘AcceptBlue’ or the name of the External Credential to use. 
- Info_TransactionID: Select to include and retrieve the Transaction ID from the Get Records component. 
 

- Add a Decision element as the next step in your Flow. Use the ‘WasError’ resource in your Decision configuration to determine if the transaction (Void) was successful. 
- Next add the Update Records element to your Flow. You might opt to mark the Payment Record as Void in Salesforce or choose to delete the record. In our example, we have updated the record to mark the payment as Void. - If there was no transaction error, you may also choose to display a successful operation message to the user or to display the error message if the transaction was unsuccessful. 
- Save the Flow. 
When complete, your Flow might look something like this:
Last updated