Skip to content

Commit

Permalink
Use own property in StripeService to check for Apple pay is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg-Pecheneg committed Apr 4, 2024
1 parent 1382ab7 commit c5c6660
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private extension StripeService {
func payWithStripeAsync(callback: @escaping PurchaseResultCallback) {
paymentDetails.resultCallback = callback
DispatchQueue.main.async {
if StripeAPI.deviceSupportsApplePay() {
if StripeService.isApplePaySupported {
self.startPaymentWithApplePay()
} else {
self.startPaymentWithoutApplePay()
Expand Down

0 comments on commit c5c6660

Please sign in to comment.