TestModeSettings
public struct TestModeSettings
Test mode settings.
-
A Boolean value that determines whether payment authorization has been completed.
Declaration
Swift
public let paymentAuthorizationPassed: Bool
-
Cards count.
Declaration
Swift
public let cardsCount: Int
-
The amount to be paid.
Declaration
Swift
public let charge: Amount
-
A Boolean value that determines whether the payment will end with an error.
Declaration
Swift
public let enablePaymentError: Bool
-
Creates instance of
TestModeSettings
.Declaration
Swift
public init(paymentAuthorizationPassed: Bool, cardsCount: Int, charge: Amount, enablePaymentError: Bool)
Parameters
paymentAuthorizationPassed
A Boolean value that determines whether payment authorization has been completed.
cardsCount
Cards count.
charge
The amount to be paid.
enablePaymentError
A Boolean value that determines whether the payment will end with an error.
Return Value
Instance of
TestModeSettings
.