Add Refund Reasons to Refund Journey

By default, the refund journey does not require specifying a reason for the refund.

A list of reasons however can be configured, captured as part of the flow, and in turn the selected reason will be sent to Limio.

249216899-ce298f3c-83cf-4ff6-847a-4e1c93e3f841.png

The values set for the picklist are stored in the Subscription Action metadata of ic Assist Config.

Values being rendered are listed in the refundReasons array, and then retrieved in apex by the method "Get refund reasons" and then stored in the flow variable refundReasons, an apex class of type List<i42as__PicklistChoice>

Should a more sophisticated logic be required for dynamically fetching picklist values, it is possible to replace this apex action with another custom action, as long as the results are of the same type i42as__PicklistChoice and then stored in the flow variable refundReasons.

The Refund Screen flow element will read this value and render the list dynamically.

Last updated

Was this helpful?