Start Payment
tapToPaySdk.startPayment(transactionDetail: TransactionDetail) async throws
Create a TransactionDetail and invoke tapToPaySdk.startTransaction() function to start a payment.
See TransactionDetail.
public func startPayment(transactionDetail: TyroTapToPaySDK.TransactionDetail) async throws -> TyroTapToPaySDK.TransactionOutcomeParameters
| transactionDetail required | TransactionDetail The request parameters for the transaction |
Returns
Returns a TransactionOutcome containing detailed information about the result of the refund transaction.
Throws
It is strongly recommended to handle errors thrown by tapToPaySDK.startPayment() otherwise your App will crash.
TapToPaySDKError.transactionError(errorMessage: String)
Throws TapToPaySDKError.transactionError when there was an issue with the transaction.
See TapToPaySDKError for more details on errors thrown.