startPayment abstract method

Future<Result> startPayment(
  1. SingleTransaction transaction, {
  2. void onPaymentCreated(
    1. String? transactionId
    )?,
})

Method used to start standard payment with Tpay UI Module

transaction - The transaction details required to initiate the payment. onPaymentCreated - Optional callback that is invoked when a payment is successfully created. It receives the transaction ID as a parameter.

Implementation

Future<Result> startPayment(SingleTransaction transaction, {void Function(String? transactionId)? onPaymentCreated});