PayWithApplePayButton SwiftUI API

During the WWDC2022 talk "What's new in Apple Pay - WWDC2022" the new SwiftUI implementation of Pay with Apple Pay was introduced.

During the talk only a code snipped is shared (screenshot).

Is there any example app or reference code that uses the APIs? Especially:

  • PayWithApplePayButton and
  • PayWithApplePayButtonPaymentAuthorizationPhase

Link to the talk: What's new in Apple Pay - WWDC2022

PayWithApplePayButton SwiftUI API
 
 
Q