getMethodFormatted method

String getMethodFormatted()

Implementation

String getMethodFormatted() {
  switch (method) {
    case "paypal":
      return "PayPal";
    case "creditcard":
      return "Credit Card";
    case "sofort":
      return "Sofort";
    default:
      return "No method selected";
  }
}