Skip to content

Commit

Permalink
Merge pull request #417 from PermanentOrg/hotfix/VSP-1388-Update-Appl…
Browse files Browse the repository at this point in the history
…e-Pay-Button

VSP-1388 Changed Apple Pay button.
  • Loading branch information
luciancerbu-vsp authored Feb 28, 2024
2 parents da825ba + 606efe0 commit 4f51498
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DonateViewController: BaseViewController<DonateViewModel> {
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var contextLabel: UILabel!

let applePayButton: UIButton = UIButton(type: .roundedRect)
let applePayButton: PKPaymentButton = PKPaymentButton(paymentButtonType: .plain, paymentButtonStyle: .black)

static var invalidCharacterSet: CharacterSet = {
var characterSet = CharacterSet.decimalDigits
Expand Down Expand Up @@ -50,12 +50,8 @@ class DonateViewController: BaseViewController<DonateViewModel> {
donateTextField.clipsToBounds = true
donateTextField.delegate = self

applePayButton.setTitle("Endow with Apple Pay®", for: .normal)
applePayButton.backgroundColor = .black
applePayButton.setFont(TextFontStyle.style35.font)
applePayButton.setTitleColor(.white, for: .normal)
applePayButton.layer.cornerRadius = 5
applePayButton.translatesAutoresizingMaskIntoConstraints = false
applePayButton.cornerRadius = 5
applePayButton.addTarget(self, action: #selector(applePayButtonPressed(_:)), for: .touchUpInside)
paymentView.addSubview(applePayButton)

Expand Down

0 comments on commit 4f51498

Please sign in to comment.