lib/pay/stripe/billable.rb
# Handles Billable#customer
#
# Returns Stripe::Customer
Handles Billable#customer
Returns Stripe::Customer
Handles Billable#customer Returns Stripe :: Customer
def stripe_customer
        if processor_id?
          ::Stripe::Customer.retrieve(processor_id)
        else
          create_stripe_customer
        end
      rescue ::Stripe::StripeError => e
        raise Error, e.message
      end
def stripe_customer if processor_id? :: Stripe :: Customer . retrieve ( processor_id ) else create_stripe_customer end rescue :: Stripe :: StripeError => e raise Error , e . message end
Handles Billable#customer
Returns Stripe::Customer
Handles Billable#customer Returns Stripe :: Customer