Skip to content

Commit b540779

Browse files
committed
Canceled -> Cancelled
1 parent eab1566 commit b540779

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

Example/Stripe iOS Example (Custom)/ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ - (void)checkoutController:(STPCheckoutViewController *)controller didFinishWith
187187
case STPPaymentStatusError:
188188
[self presentError:error];
189189
break;
190-
case STPPaymentStatusUserCanceled:
190+
case STPPaymentStatusUserCancelled:
191191
// do nothing
192192
break;
193193
}

Example/Stripe iOS Example (Simple)/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class ViewController: UIViewController, STPPaymentPresenterDelegate {
6666
func paymentPresenter(presenter: STPPaymentPresenter!, didFinishWithStatus status: STPPaymentStatus, error: NSError!) {
6767

6868
self.dismissViewControllerAnimated(true, completion: { () -> Void in
69-
if (status == STPPaymentStatus.UserCanceled) {
69+
if (status == STPPaymentStatus.UserCancelled) {
7070
return
7171
}
7272
let alert = UIAlertController(title: nil, message: nil, preferredStyle: UIAlertControllerStyle.Alert)

Stripe/ApplePay/STPPaymentPresenter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ - (void)paymentAuthorizationViewControllerDidFinish:(__unused PKPaymentAuthoriza
145145
} else if (self.hasAuthorizedPayment) {
146146
status = STPPaymentStatusSuccess;
147147
} else {
148-
status = STPPaymentStatusUserCanceled;
148+
status = STPPaymentStatusUserCancelled;
149149
}
150150
[self finishWithStatus:status error:self.error];
151151
}

Stripe/Checkout/STPCheckoutInternalUIWebViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ - (void)viewDidLoad {
135135
}
136136

137137
- (void)cancel:(__unused id)sender {
138-
[self.delegate checkoutController:self.checkoutController didFinishWithStatus:STPPaymentStatusUserCanceled error:nil];
138+
[self.delegate checkoutController:self.checkoutController didFinishWithStatus:STPPaymentStatusUserCancelled error:nil];
139139
[self cleanup];
140140
}
141141

@@ -210,7 +210,7 @@ - (void)checkoutAdapter:(id<STPCheckoutWebViewAdapter>)adapter didTriggerEvent:(
210210
}
211211
[self cleanup];
212212
} else if ([event isEqualToString:STPCheckoutEventCancel]) {
213-
[self.delegate checkoutController:self.checkoutController didFinishWithStatus:STPPaymentStatusUserCanceled error:nil];
213+
[self.delegate checkoutController:self.checkoutController didFinishWithStatus:STPPaymentStatusUserCancelled error:nil];
214214
[self cleanup];
215215
} else if ([event isEqualToString:STPCheckoutEventError]) {
216216
NSError *error = [[NSError alloc] initWithDomain:StripeDomain code:STPCheckoutError userInfo:payload];

Stripe/Checkout/STPCheckoutViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ - (void)checkoutAdapter:(id<STPCheckoutWebViewAdapter>)adapter didTriggerEvent:(
166166
[self.checkoutDelegate checkoutController:self didFinishWithStatus:STPPaymentStatusError error:self.backendChargeError];
167167
}
168168
} else if ([event isEqualToString:STPCheckoutEventCancel]) {
169-
[self.checkoutDelegate checkoutController:self didFinishWithStatus:STPPaymentStatusUserCanceled error:nil];
169+
[self.checkoutDelegate checkoutController:self didFinishWithStatus:STPPaymentStatusUserCancelled error:nil];
170170
} else if ([event isEqualToString:STPCheckoutEventError]) {
171171
NSError *error = [[NSError alloc] initWithDomain:StripeDomain code:STPCheckoutError userInfo:payload];
172172
[self.checkoutDelegate checkoutController:self didFinishWithStatus:STPPaymentStatusError error:error];

Stripe/PublicHeaders/ApplePay/STPPaymentPresenter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
8585
*
8686
* @param presenter The payment presenter that has finished.
87-
* @param status This will be one of STPPaymentStatusSuccess, STPPaymentStatusError, or STPPaymentStatusUserCanceled depending on what happened with the
87+
* @param status This will be one of STPPaymentStatusSuccess, STPPaymentStatusError, or STPPaymentStatusUserCancelled depending on what happened with the
8888
user's transaction.
8989
* @param error This will only be set if status == STPPaymentStatusError. If you returned STPBackendChargeResultFailure from your API call above, this will
9090
be the error you (optionally) included there. If not, see StripeError.h for the possible values it may contain.

Stripe/PublicHeaders/Checkout/STPCheckoutViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
typedef NS_ENUM(NSInteger, STPPaymentStatus) {
1717
STPPaymentStatusSuccess, // The transaction was a success.
1818
STPPaymentStatusError, // The transaction failed.
19-
STPPaymentStatusUserCanceled, // The user canceled the payment sheet.
19+
STPPaymentStatusUserCancelled, // The user Cancelled the payment sheet.
2020
};
2121

2222
@class STPCheckoutOptions, STPToken;

0 commit comments

Comments
 (0)