code: public static CommerceOrderPayment[] findByCommerceOrderId_PrevAndNext(
  		long commerceOrderPaymentId, long commerceOrderId,
  		OrderByComparator<CommerceOrderPayment> orderByComparator)
  		throws com.liferay.commerce.exception.NoSuchOrderPaymentException {
  		return getPersistence()
  				   .findByCommerceOrderId_PrevAndNext(commerceOrderPaymentId,
  			commerceOrderId, orderByComparator);
  	}
docs: Returns the commerce order payments before and after the current commerce order payment in the ordered set where commerceOrderId = &#63;.
  
  @param commerceOrderPaymentId the primary key of the current commerce order payment
  @param commerceOrderId the commerce order ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce order payment
  @throws NoSuchOrderPaymentException if a commerce order payment with the primary key could not be found