# mergePaymentRequest method

dynamic mergePaymentRequest(

1. {required PaymentProduct paymentProduct}

)

Merges existing field values map with the `paymentProduct` values.

## Implementation

    mergePaymentRequest({required PaymentProduct paymentProduct}) {
      Map<String, String> newFieldValues = {};
      for (PaymentProductField field in paymentProduct.fields) {
        for (MapEntry<String, String> fieldValue in fieldValues.entries) {
          if (field.id == fieldValue.key) {
            newFieldValues[fieldValue.key] = fieldValue.value;
          }
        }
      }
      return newFieldValues;
    }