Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
authorized_for?
def authorized_for?(requested_amount)
['single_payment','recurring_payment'].include?(action_id) && requested_amount <= amount.to_f && !invalidated?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.