payTMoney static method
Implementation
static Future<void> payTMoney(
double amount,
PaygateVersion version, {
required String phoneNumber,
String? description,
String? identifier,
String? callbackUrl,
}) {
return version == PaygateVersion.v1
? payV1(
phoneNumber: phoneNumber,
provider: PaygateProvider.tmoney,
amount: amount,
description: description,
identifier: identifier,
)
: payV2(
amount: amount,
provider: PaygateProvider.tmoney,
description: description,
callbackUrl: callbackUrl,
identifier: identifier,
phoneNumber: phoneNumber,
);
}