getBasicPaymentProductByAccountOnFileId method
Returns the BasicPaymentProduct with the corresponding accountOnFileId
, or null if not found.
Implementation
BasicPaymentProduct? getBasicPaymentProductByAccountOnFileId(
String accountOnFileId) {
for (BasicPaymentProduct product in products) {
for (AccountOnFile accountOnFile in product.accountsOnFile) {
if (accountOnFile.id == accountOnFileId) {
return product;
}
}
}
return null;
}