IPPaymentDetailsViewController
public class IPPaymentDetailsViewController : UIViewController
Screen for payment details
### Usage: ###
let payDetailsVc = IPPaymentDetailsViewController(beneficiaryName: "John Doe",
scheduledDueDate: Date(),
dueDate: Date(),
navTitle: "PAGAMENTO",
paymentAmount: 223.24,
currentBalance: 3250,
baseColor: .systemRed,
paymentMessage: "",
payerName: "Jane Doe",
bankName: "ITAU",
barcode: "34191.09065 44830. 1285 40141.906 8 00001.83120.59475",
payWithType: "My Banking",
isPayment: false)
// As an alternative when usigin .xibs this method can be call to setup the screen
payDetailsVC.setContent(beneficiaryName: "John Doe",
scheduledDueDate: Date(),
dueDate: Date(),
navTitle: "PAGAMENTO",
paymentAmount: 223.24,
currentBalance: 3250,
baseColor: .systemRed,
paymentMessage: "",
payerName: "Jane Doe",
bankName: "ITAU",
barcode: "34191.09065 44830. 1285 40141.906 8 00001.83120.59475",
payWithType: "My Banking",
isPayment: false)
// Closure to handle button on the screen
payDetailsVC.handleButtonClick = {
IPMessageModalViewController.showModal(from: payDetailsVC,
title: "Title text",
message: "message text")
}
# Notes:
- isPayment false means schedule payment
-
Undocumented
Declaration
Swift
@objc public var handleButtonClick: (() -> ())?
-
init(beneficiaryName:
scheduledDueDate: dueDate: navTitle: paymentAmount: currentBalance: baseColor: paymentMessage: payerName: bankName: barcode: payWithType: isPayment: ) Undocumented
Declaration
Swift
public init(beneficiaryName: String, scheduledDueDate: Date, dueDate: Date, navTitle: String, paymentAmount: Double, currentBalance: Double, baseColor: UIColor, paymentMessage: String, payerName: String, bankName: String, barcode: String, payWithType: String, isPayment: Bool)
-
Undocumented
Declaration
Swift
public override func viewDidLoad()
-
Undocumented
Declaration
Swift
public override func viewWillAppear(_ animated: Bool)
-
Undocumented
Declaration
Swift
public override func viewWillDisappear(_ animated: Bool)
-
setContent(beneficiaryName:
scheduledDueDate: dueDate: navTitle: paymentAmount: currentBalance: baseColor: paymentMessage: payerName: bankName: barcode: payWithType: isPayment: ) Undocumented
Declaration
Swift
public func setContent(beneficiaryName: String, scheduledDueDate: Date, dueDate: Date, navTitle: String, paymentAmount: Double, currentBalance: Double, baseColor: UIColor, paymentMessage: String, payerName: String, bankName: String, barcode: String, payWithType: String, isPayment: Bool)