displayName: 'Payment Type',
'The medium of payment which was used to complete the transaction',
validOptions: ['cash', 'credit', 'debit', 'paypal'],
displayName: 'Payment Provider',
'If the payment was made using a credit or debit card, contains the provider of that card',
validOptions: async (rowValues) => {
const paymentType = rowValues[0];
// If the user hasn't yet filled out the first column, do not let them populate this field yet
// If the payment wasn't made with a card, force the user to fill this field with "N/A"
if (paymentType !== 'credit' && paymentType !== 'debit') {
// Allow the user to pick from the set of available card providers
// If the card provider is other than the list we have available, allow the user to pick a custom option for this field and override the dropdown options we present them with
allowCustomOptions: true,