|
@@ -368,6 +368,7 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
if VerificationManager.default().email != nil {
|
|
|
emailTextField.stringValue = VerificationManager.default().email
|
|
|
}
|
|
|
+ emailTextField.delegate = self
|
|
|
errorLabel.textColor = NSColor(named: "KMPurchaseErrorColor")
|
|
|
errorLabel.font = NSFont.SFProTextRegularFont(11.0)
|
|
|
emailErrorLabel(isReveal: false)
|
|
@@ -838,6 +839,7 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
}
|
|
|
|
|
|
@IBAction func payButtonAction(_ sender: NSButton) {
|
|
|
+ emailErrorLabel(isReveal: false)
|
|
|
confirmPayment(isConfirm: false)
|
|
|
refreshApplyButton(isReveal: true)
|
|
|
paymentMethod = KMPaymentType(rawValue: uint32(sender.tag)) ?? .paypal
|
|
@@ -1646,7 +1648,7 @@ extension KMPurchaseEmbeddedWindowController: NSTextFieldDelegate {
|
|
|
if !isNumeric(textField!.stringValue) {
|
|
|
if textField == amountTextField1 { textField?.stringValue = String(pdfCount) }
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|