Skip to content

Commit

Permalink
Update Apple Pay Button type options to fit AppFolio's needs
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleG43 committed May 20, 2024
1 parent e3d5d54 commit cae699d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ios/Views/PKPaymentButtonView.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,12 @@ - (void)setButtonType:(NSString *) buttonType andStyle:(NSString *) buttonStyle
PKPaymentButtonType type;
PKPaymentButtonStyle style;

if ([buttonType isEqualToString: @"buy"]) {
type = PKPaymentButtonTypeBuy;
} else if ([buttonType isEqualToString: @"setUp"]) {
if ([buttonType isEqualToString: @"setUp"]) {
type = PKPaymentButtonTypeSetUp;
} else if ([buttonType isEqualToString: @"continue"]) {
type = PKPaymentButtonTypeContinue;
} else if ([buttonType isEqualToString: @"inStore"]) {
type = PKPaymentButtonTypeInStore;
} else if ([buttonType isEqualToString: @"donate"]) {
type = PKPaymentButtonTypeDonate;
} else {
type = PKPaymentButtonTypePlain;
}
Expand Down

0 comments on commit cae699d

Please sign in to comment.