Class: Spree::PaypalPlatform::PaymentSources::Paypal

Inherits:
Spree::PaymentSource
  • Object
show all
Defined in:
app/models/spree/paypal_platform/payment_sources/paypal.rb

Overview

A PayPal wallet account captured as a Spree payment source.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.display_nameString

Returns:

  • (String)


22
23
24
# File 'app/models/spree/paypal_platform/payment_sources/paypal.rb', line 22

def self.display_name
  'PayPal'
end

Instance Method Details

#actionsArray<String>

Returns:

  • (Array<String>)


15
16
17
# File 'app/models/spree/paypal_platform/payment_sources/paypal.rb', line 15

def actions
  %w[credit void]
end

#display_payment_infoString

Human-readable wallet line for admin and order emails.

Returns:

  • (String)


31
32
33
# File 'app/models/spree/paypal_platform/payment_sources/paypal.rb', line 31

def display_payment_info
  ['PayPal', ].compact.join(' ยท ')
end