Skip to content

Commit

Permalink
Reverting PKShippingContactEditingMode.available to .enabled for …
Browse files Browse the repository at this point in the history
…compatibility reasons (#1805)

## Summary
- Reverting `PKShippingContactEditingMode.available` to
`PKShippingContactEditingMode.enabled` to be able to build with older
Xcode versions

Co-authored-by: Alex Guretzki <[email protected]>
  • Loading branch information
goergisn and Alex Guretzki authored Sep 5, 2024
1 parent 13741dd commit f12d52f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion AdyenComponents/Apple Pay/ApplePayConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ extension ApplePayComponent {
if #available(iOS 15.0, *) {
paymentRequest.couponCode = couponCode
paymentRequest.supportsCouponCode = supportsCouponCode
paymentRequest.shippingContactEditingMode = allowShippingContactEditing ? .available : .storePickup

// Even though there is a deprecation warning and `.available` looks to be available since iOS 15,
// it does not compile when using older versions of Xcode - so we have to ignore this warning for now
paymentRequest.shippingContactEditingMode = allowShippingContactEditing ? .enabled : .storePickup
}

return paymentRequest
Expand Down

0 comments on commit f12d52f

Please sign in to comment.