View
public extension View
-
Starts the payment SDK from a SwiftUI application.
Declaration
Swift
func datatrans(startWithTransaction: Binding<Datatrans.Transaction?>) -> some View
Parameters
startWithTransaction
A binding variable to a transaction object previously initialized and configured. When the transaction object is set to a non-nil value the transaction is started immediately. Make sure to fully configure the transaction before assigning it. The SDK sets the transaction to nil when it is finished.
-
Starts a PCI Proxy flow from a SwiftUI application.
Declaration
Swift
func datatrans(startWithPCIPTokenization: Binding<Datatrans.PCIPTokenization?>) -> some View
Parameters
startWithPCIPTokenization
A binding variable to a PCIPTokenization object previously initialized and configured. When the PCIPTokenization object is set to a non-nil value the PCIPTokenization is started immediately. Make sure to fully configure the PCIPTokenization before assigning it. The SDK sets the PCIPTokenization to nil when it is finished.