|
@ -51,6 +51,10 @@ class RechargePaymentViewController: UIViewController { |
|
|
@IBOutlet private weak var paymentAmountTitleLable: UILabel! |
|
|
@IBOutlet private weak var paymentAmountTitleLable: UILabel! |
|
|
@IBOutlet private weak var balanceTitleLabel: UILabel! |
|
|
@IBOutlet private weak var balanceTitleLabel: UILabel! |
|
|
|
|
|
|
|
|
|
|
|
@IBOutlet weak var gmeWalletStackView: UIStackView! |
|
|
|
|
|
@IBOutlet weak var expectedWalletStackView: UIStackView! |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// MARK: VC's Life cycle |
|
|
// MARK: VC's Life cycle |
|
|
override func viewDidLoad() { |
|
|
override func viewDidLoad() { |
|
|
super.viewDidLoad() |
|
|
super.viewDidLoad() |
|
@ -167,13 +171,13 @@ extension RechargePaymentViewController { |
|
|
} |
|
|
} |
|
|
//let message = "possessed_coupon_number_text".localized().replacingOccurrences(of: "xxx", with: "\(couponList?.count ?? 0)") |
|
|
//let message = "possessed_coupon_number_text".localized().replacingOccurrences(of: "xxx", with: "\(couponList?.count ?? 0)") |
|
|
if model.paymentType == "autodebit" { |
|
|
if model.paymentType == "autodebit" { |
|
|
guard let account = model.accountNumber else { |
|
|
|
|
|
return self.gmeWalletTitleLabel.text = model.bankName |
|
|
|
|
|
} |
|
|
|
|
|
self.gmeWalletTitleLabel.text = "\(model.bankName ?? "") \(account)" |
|
|
|
|
|
self.balanceTitleLabel.text = "expected_autodebit_balance_text".localized().replacingOccurrences(of: "XX Bank", with: "\(model.bankName ?? "")") |
|
|
|
|
|
self.rechargeButton.setTitle("pay_using_autodebit_account_text".localized().replacingOccurrences(of: "XX Bank", with: "\(model.bankName ?? "")"), for: .normal) |
|
|
|
|
|
|
|
|
self.gmeWalletStackView.isHidden = true |
|
|
|
|
|
self.expectedWalletStackView.isHidden = true |
|
|
|
|
|
|
|
|
|
|
|
self.rechargeButton.setTitle("pay_using_autodebit_account_text".localized().replacingOccurrences(of: "XX", with: "\(model.bankName ?? "")"), for: .normal) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
self.gmeWalletStackView.isHidden = false |
|
|
|
|
|
self.expectedWalletStackView.isHidden = false |
|
|
self.gmeWalletTitleLabel.text = "gme_wallet_text".localized() |
|
|
self.gmeWalletTitleLabel.text = "gme_wallet_text".localized() |
|
|
self.balanceTitleLabel.text = "expected_gme_wallet_balance_text".localized() |
|
|
self.balanceTitleLabel.text = "expected_gme_wallet_balance_text".localized() |
|
|
self.rechargeButton.setTitle("pay_using_gme_wallet_text".localized(), for: .normal) |
|
|
self.rechargeButton.setTitle("pay_using_gme_wallet_text".localized(), for: .normal) |
|
|