ApplePayPayment
public class ApplePayPayment : ApplePayPaymentProcess
A manager class responsible for handling the lifecycle of an Apple Pay payment.
This class orchestrates the payment flow, bridging the gap between the UI
and the internal Finite State Machine (FSM) that processes the transaction.
It conforms to ApplePayPaymentProcess.
-
The current observable status of the wallet payment.
Subscribe to this publisher to receive updates regarding the payment lifecycle (e.g.,
.idle,.processing).Declaration
Swift
@Published public var status: WalletPaymentStatus { get set } -
Prepares the payment process for authorization and retrieves the request receiver.
This method attempts to transition the internal state machine to the
.authorizationstate to begin the transaction.Declaration
Swift
public func obtainPaymentRequestReceiver() -> MerchantRequestReceiver<ApplePayRequestPayload>?Return Value
A
MerchantRequestReceivercontaining the payload if the transition to authorization is successful; otherwisenil.