Loading
Manage Your Billing Processes with Salesforce Billing
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Guidelines for Ending a Failed Payment Run

          Guidelines for Ending a Failed Payment Run

          The End Payment Run button lets you restart and finalize a payment run that was unexpectedly interrupted. When you click it, Salesforce Billing takes different actions based on how the payment run was interrupted. (Salesforce Billing Managed Package)

          Required Editions

          Available in: Salesforce Billing Winter ’19 and later

          Unexpected interruptions such as system failures and terminated apex jobs can cause a payment run's batch to fail. You can resume the stalled payment run by clicking End Payment Run on the payment run record. When you click End Payment Run, Salesforce Billing evaluates all invoices with the same payment run ID as your stalled payment run. It then performs a different set of actions based on the payment transaction’s gateway status and when the batch failed.

          Payment run failed during Started [Batch 1]
          Payment runs that failed during batch 1 never made a gateway callout, so we don’t have to worry about making double payments. In this case, Salesforce Billing performs the following steps.
          1. Change each invoice’s current processing message to “Couldn't make a call to the gateway.”
          2. Clear out each invoice’s Payment Run field value
          3. Each invoice’s Last Payment Run ID field inherits the value of the Payment Run ID field.
          4. Change each payment transaction's status to Processed
          5. Change each payment transaction's exception message to “Couldn't make a call to the gateway.”
          Payment run failed during Processing [Batch 2], transaction gateway status is None
          In this case, the payment run failed while it was processing invoices, and Salesforce Billing didn’t receive any responses from the gateway.
          1. For each invoice, find related payment transactions and change their gateway statuses to Indeterminate.
          2. For each invoice, select the Corrective Action field.
          3. Change the failed payment run’s processing message to “Manual Review Needed.”
          Payment run failed during Batch 2, transaction gateway status is any value other than Indeterminate or Success
          In this case, Salesforce Billing updated the payment transaction after receiving a response from the gateway indicating some type of payment creation failure. Salesforce Billing changes each invoice’s current processing message to “Received failure from gateway. No payment made.”
          Payment run failed during Batch 2, transaction gateway status is Success
          In this case, Salesforce Billing received a successful gateway response from the gateway. After clicking End Payment Run in this case, Salesforce Billing performs the following steps.
          1. Each invoice’s Last Payment Run ID field inherits the value of the Payment Run ID field.
          2. Clear out each invoice’s Payment Run ID field.
          3. For each invoice, find any related payment transactions and change their statuses to Processed.
          4. Sometimes when the payment run fails, Salesforce Billing creates payment transactions that don’t look up to an invoice. Find these payment transactions and change their statuses to Processed.
          5. Clear out each invoice’s In Cleanup field.
           
          Loading
          Salesforce Help | Article