Class: Spree::PaypalPlatform::PaymentSources::Paypal
- Inherits:
-
Spree::PaymentSource
- Object
- Spree::PaymentSource
- Spree::PaypalPlatform::PaymentSources::Paypal
- 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
- #actions ⇒ Array<String>
-
#display_payment_info ⇒ String
Human-readable wallet line for admin and order emails.
Class Method Details
.display_name ⇒ 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
#actions ⇒ 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_info ⇒ String
Human-readable wallet line for admin and order emails.
31 32 33 |
# File 'app/models/spree/paypal_platform/payment_sources/paypal.rb', line 31 def display_payment_info ['PayPal', account_id].compact.join(' ยท ') end |