# getBasicPaymentProductById method

BasicPaymentProduct? getBasicPaymentProductById(

1. String id

)

Returns the BasicPaymentProduct with the corresponding `id`, or null if not found.

## Implementation

    BasicPaymentProduct? getBasicPaymentProductById(String id) {
      for (BasicPaymentProduct product in products) {
        if (product.id == id) {
          return product;
        }
      }
      return null;
    }