RemotePaymentSession
public final actor RemotePaymentSession
The RemotePaymentSession provides an API to support remote payment.
Since
7.0.0-
Constructor to initialize
RemotePaymentSession.Declaration
Swift
public init() -
Generates Remote payment data for Remote payment transactions
Throws:
deviceEnvironmentUnsafe(_:)if device environment is unsafe.clientError(_:)if failure encountered on remote payment.sessionInProgressif error encountered when one payment session is already in progress and trying to make another payment.invalidInputData(_:)if remote paymenet input data is invalid.cardNotActiveif error encountered on using suspended card for remote payment.noPaymentKeysif payment card is out of payment keys.cardNotSupportedif payment is not supported by the card.noDefaultCardif invoking remote payment when no default card is set.
Declaration
Swift
public func generateRemotePayment( withDigitalCardID digitalCardID: String?, remotePaymentInputData: RemotePaymentInputData, userPrompt: String? ) async throws -> RemotePaymentOutputDataParameters
digitalCardIDRespective card id of the requested payment.
remotePaymentInputDataInput data of type RemotePaymentInputData to support payment initialization.
userPromptString from user for the payment Authentication prompt message.
Return Value
RemotePaymentOutputData, struct containg the output data of the remote payment. -
This enum represents set of errors encountered during
See moreRemotePaymentSessionAPI call.Declaration
Swift
public enum Error : Swift.Error, Sendable -
This is a struct representing the parameters required for the
See moregenerateRemotePayment(withDigitalCardID:remotePaymentInputData:userPrompt:)API.Declaration
Swift
public struct RemotePaymentInputData : Sendable -
This is a struct representing the data returned from the
See moregenerateRemotePayment(withDigitalCardID:remotePaymentInputData:userPrompt:)API.Declaration
Swift
public struct RemotePaymentOutputData : Sendable -
Cryptogram Type
- This Enum contains the list of supported cryptogram data types.
See moreSince
7.0.0Declaration
Swift
public enum CryptogramType : Int, Sendable -
Declaration
Swift
public enum TransactionType : Sendable
RemotePaymentSession Actor Reference