Commit cdce7fc7 by David Muzi

Default Apple Pay status to failure so cancellation does not appear as a success

parent c07f60c5
...@@ -117,6 +117,8 @@ NSString * BUYURLKey = @"url"; ...@@ -117,6 +117,8 @@ NSString * BUYURLKey = @"url";
- (void)startApplePayCheckout:(BUYCheckout *)checkout - (void)startApplePayCheckout:(BUYCheckout *)checkout
{ {
// Default to the failure state, since cancelling a payment would not update the state and thus appear as a success
self.paymentAuthorizationStatus = PKPaymentAuthorizationStatusFailure;
if (self.shop == nil && self.isLoadingShop == NO) { if (self.shop == nil && self.isLoadingShop == NO) {
// since requests are sent serially, this will return before the checkout is created // since requests are sent serially, this will return before the checkout is created
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment