confirm method Null safety
It's used to confirm the order if the payment is Cash on delivery
.
It will return the Order Code.
Implementation
Future<String> confirm(
{required int customerId,
int? paymentOptionId,
int? addressId,
required int loyaltyPoints,
required double finalAmount,
int? storeId});