payV2 static method

Future<NewTransactionResponse> payV2({
  1. String? identifier,
  2. String? description,
  3. String? callbackUrl,
  4. String? phoneNumber,
  5. PaygateProvider? provider,
  6. required double amount,
})

Implementation

static Future<NewTransactionResponse> payV2({
  String? identifier,
  String? description,
  String? callbackUrl,
  String? phoneNumber,
  PaygateProvider? provider,
  required double amount,
}) async {
  return payViaPaygateV2(
    _token,
    amount,
    (identifier ?? "").isNotEmpty
        ? identifier!
        : (await PaygateConfig.newUniqIdentifier),
    description: description,
    callbackUrl: callbackUrl,
    phoneNumber: phoneNumber,
    provider: provider,
    color: PaygateConfig.customTabColor,
  );
}