getting payment_method via its type attribute