#include "..\script_component.hpp"

params ["_control", "_selectedIndex"];

private _display = ctrlParent _control;
private _selectedPayment = _control lbData _selectedIndex;
private _selectedPaymentTitle = _control lbText _selectedIndex;

[format ["You have selected %1 as your payment method.", _selectedPaymentTitle], "info", 3, "right"] call EFUNC(misc,notify);

GVAR(activePayment) = _selectedPayment;