Exception: Reji::InvalidPaymentMethodError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/reji/errors.rb

Class Method Summary collapse

Class Method Details

.invalid_owner(payment_method, owner) ⇒ Object



39
40
41
# File 'lib/reji/errors.rb', line 39

def self.invalid_owner(payment_method, owner)
  new("The payment method `#{payment_method.id}` does not belong to this customer `#{owner.stripe_id}`.")
end