PKPaymentPasshas been replaced by a new classPKSecureElementPass.PKSecureElementPasshas the same properties asPKPaymentPass, so it’s encouraged to use this one.PKPaymentButtondidn’t change much, however it has new button types for renting, top up, etc..Now the payment button can derive its light/dark style theme from the system by supplying an automatic style to the button:
var automaticButton = PKPaymentButton(paymentButtonType: .plain, paymentButtonStyle: .automatic)We can also request specifically for light or dark mode in the same way
Now Catalyst and native macOS apps supports paying with Apple Pay in the same way it’s implemented on web pages
Also, instead of asking the WebKit for a URL for Apple Pay and validate that URL against known Apple hostnames, there is a static URL you we always send our
POSTrequest to directly:apple-pay-gateway.apple.com
Contacts formatting improvements
in iOS 14, when contact data is coming from Apple Pay, qw will see more consistent data and less variation
Also, users are now prompted to correct issues in their contact information earlier, so they get to fix it sooner in the process.
