startPayment abstract method
Future<Result>
startPayment(
- SingleTransaction transaction, {
- void onPaymentCreated(
- 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});