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.
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.
Comments
0 comments
Please sign in to leave a comment.