getPayChannel function

String getPayChannel(
  1. PayChannel channel
)

Implementation

String getPayChannel(PayChannel channel) {
  switch (channel) {
    case PayChannel.account:
      return "account";
    case PayChannel.card:
      return "card";
    case PayChannel.transfer:
      return "transfer";
    case PayChannel.momo:
      return "wallet";
    case PayChannel.ussd:
      return "ussd";
    default:
      return "card";
  }
}