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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Adds ability for developers to harden the security of payments and payment methods (#11576)
Damian Legawiecab448523bdc1
diff --git a/core/app/models/spree/payment.rb b/core/app/models/spree/payment.rbindex bf607053b0..086b11ae64 100644--- a/core/app/models/spree/payment.rb+++ b/core/app/models/spree/payment.rb@@ -9,6 +9,9 @@ module Spreeif defined?(Spree::Webhooks)include Spree::Webhooks::HasWebhooksend+ if defined?(Spree::Security::Payments)+ include Spree::Security::Payments+ endinclude Spree::Payment::Processingdiff --git a/core/app/models/spree/payment_method.rb b/core/app/models/spree/payment_method.rbindex 79aef5d0ef..22b0c2b25b 100644--- a/core/app/models/spree/payment_method.rb+++ b/core/app/models/spree/payment_method.rb@@ -5,6 +5,9 @@ module Spreeinclude MultiStoreResourceinclude Spree::Metadata+ if defined?(Spree::Security::PaymentMethods)+ include Spree::Security::PaymentMethods+ endDISPLAY = [:both, :front_end, :back_end].freeze