Module: SolidusMollie::PaymentCreateDecorator

Defined in:
app/decorators/models/payment_create_decorator.rb

Instance Method Summary collapse

Instance Method Details

#after_pay_method?Boolean

Returns:

  • (Boolean)


12
13
14
15
16
17
18
# File 'app/decorators/models/payment_create_decorator.rb', line 12

def after_pay_method?
  if source.is_a? Spree::MolliePaymentSource
    return source.payment_method_name == ::Mollie::Method::KLARNAPAYLATER || source.payment_method_name == ::Mollie::Method::KLARNASLICEIT
  else
    false
  end
end

#authorized?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
# File 'app/decorators/models/payment_create_decorator.rb', line 4

def authorized?
  if source.is_a? Spree::MolliePaymentSource
    pending?
  else
    false
  end
end