Add edd_get_payment_by() function