Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fixed Store Credit payment method description in admin

Damian Legawiec5b6a8aa85dd2
diff --git a/core/app/models/spree/payment_method/store_credit.rb b/core/app/models/spree/payment_method/store_credit.rb
index 8e1a09c3ba..86ceae1d2e 100644
--- a/core/app/models/spree/payment_method/store_credit.rb
+++ b/core/app/models/spree/payment_method/store_credit.rb
@@ -8,6 +8,10 @@ module Spree
'store_credit'
end
+ def description_partial_name
+ 'store_credit'
+ end
+
def can_capture?(payment)
['checkout', 'pending'].include?(payment.state)
end