Class: Spree::MolliePaymentSource

Inherits:
PaymentSource
  • Object
show all
Defined in:
app/models/spree/mollie_payment_source.rb

Instance Method Summary collapse

Instance Method Details

#method_typeObject



10
11
12
# File 'app/models/spree/mollie_payment_source.rb', line 10

def method_type
  'mollie_payment_source'
end

#nameObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'app/models/spree/mollie_payment_source.rb', line 14

def name
  case payment_method_name
  when ::Mollie::Method::IDEAL then
    'iDEAL'
  when ::Mollie::Method::CREDITCARD then
    'Credit card'
  when ::Mollie::Method::BANCONTACT then
    'Bancontact'
  when ::Mollie::Method::SOFORT then
    'SOFORT Banking'
  when ::Mollie::Method::BANKTRANSFER then
    'Bank transfer'
  when ::Mollie::Method::PAYPAL then
    'PayPal'
  when ::Mollie::Method::KBC then
    'KBC/CBC Payment Button'
  when ::Mollie::Method::BELFIUS then
    'Belfius Pay Button'
  when ::Mollie::Method::PAYSAFECARD then
    'paysafecard'
  when ::Mollie::Method::GIFTCARD then
    'Giftcard'
  when ::Mollie::Method::INGHOMEPAY then
    'ING Home\'Pay'
  when ::Mollie::Method::EPS then
    'EPS'
  when ::Mollie::Method::GIROPAY then
    'Giropay'
  when ::Mollie::Method::DIRECTDEBIT then
    'SEPA Direct debit'
  when ::Mollie::Method::KLARNASLICEIT then
    'Klarna Slice it'
  when ::Mollie::Method::KLARNAPAYLATER then
    'Klarna Pay Later'
  when ::Mollie::Method::PRZELEWY24 then
    'Przelewy24'
  when ::Mollie::Method::APPLEPAY then
    'Apple Pay'
  else
    'Mollie (Unknown method)'
  end
end

#transaction_idObject



6
7
8
# File 'app/models/spree/mollie_payment_source.rb', line 6

def transaction_id 
  payment_id
end