Please note: This information is specific to the GoCardless for Salesforce application.
The only required fields for a payment are the amount and the currency (if multi-currency payments are enabled for the Salesforce org.) When creating a payment from an authorisation, the authorisation field will automatically be populated with the correct record ID, so this should be left alone.
Payment statuses are provided according to the stage they are in the payment collection cycle. These are as follows:
Pending - The payment has been submitted to GoCardless successfully, and is awaiting submission to the banking system for processing.
Submitted - The payment has been submitted to the banking system and is in the Direct Debit processing cycle.
Collected from Customer - The payment has been collected from the customer’s bank account.
Paid out - The payment has been paid out from GoCardless to your merchant bank account.
Cancelled - The payment was cancelled at your request.
Failed - The payment failed to collect. There are a variety of reasons why this could happen, in this case there should be a reason documented in the “Status code” field.
A “status code” field is provided that can be used as the basis for a Salesforce flow or trigger - the content of this field will always be one of a few predefined values. These values are listed in the GoCardless API documentation under “Payment causes”.