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
Added the spree_paypal_checkout provider gem skeleton
Łukasz Adamczyk9c99cede34bb
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 6a01a47594..14672ef79f 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -60,7 +60,7 @@ jobs:- name: Install all project dependenciesrun: |- for project in core api emails providers/easypost providers/meilisearch providers/stripe dashboard mcp opentelemetry; do+ for project in core api emails providers/easypost providers/meilisearch providers/paypal providers/stripe dashboard mcp opentelemetry; doecho "--- Installing gems for $project ---"cd spree/$projectbundle config set --local path ${{ github.workspace }}/vendor/bundle@@ -109,7 +109,7 @@ jobs:- name: Install all project dependenciesrun: |- for project in core api emails providers/easypost providers/meilisearch providers/stripe dashboard mcp opentelemetry; do+ for project in core api emails providers/easypost providers/meilisearch providers/paypal providers/stripe dashboard mcp opentelemetry; doecho "--- Installing gems for $project ---"cd spree/$projectbundle config set --local path ${{ github.workspace }}/vendor/bundle@@ -141,7 +141,7 @@ jobs:# The suites are small, so a runner each cost more in queue time than# they saved. This is also the only job with the Meilisearch service,# so spree_meilisearch's integration spec runs here.- - { project: providers, dirs: "providers/easypost providers/meilisearch providers/stripe", shard: 1, total_shards: 1, procs: 2 }+ - { project: providers, dirs: "providers/easypost providers/meilisearch providers/paypal providers/stripe", shard: 1, total_shards: 1, procs: 2 }# dashboard: 1 runner × 2 procs (tiny suite — SPA host)- { project: dashboard, shard: 1, total_shards: 1, procs: 2 }# mcp: 1 runner × 2 procs (tiny suite — optional MCP server gem)@@ -307,7 +307,7 @@ jobs:# providers: 1 runner × 2 procs — every provider gem shares a lane.# No Meilisearch service here, so spree_meilisearch's integration spec# skips itself; its unit specs still run against MySQL.- - { project: providers, dirs: "providers/easypost providers/meilisearch providers/stripe", shard: 1, total_shards: 1, procs: 2 }+ - { project: providers, dirs: "providers/easypost providers/meilisearch providers/paypal providers/stripe", shard: 1, total_shards: 1, procs: 2 }# dashboard: 1 runner × 2 procs (tiny suite — SPA host)- { project: dashboard, shard: 1, total_shards: 1, procs: 2 }# mcp: 1 runner × 2 procs (tiny suite — optional MCP server gem)diff --git a/docs/plans/6.0-paypal-payment-provider.md b/docs/plans/6.0-paypal-payment-provider.mdindex 2dbe7242c1..29cb26238f 100644--- a/docs/plans/6.0-paypal-payment-provider.md+++ b/docs/plans/6.0-paypal-payment-provider.md@@ -1,10 +1,10 @@# PayPal Payment Provider-**Status:** Draft — design finalized 2026-10-27, nothing built+**Status:** In Progress — building Migration Path steps 1–6 (the gem, its webhooks and upgrade steps, docs, and the storefront change); the release, step 7, comes after**Target:** Spree 6.0 (next patch release)**Depends on:** `6.0-payment-gateways-monorepo.md` (the provider gem shape, Stripe as the worked example), payment sessions in core, `6.0-money-correctness.md` (`accepts_money_amounts`), `6.0-json-preferences.md` (secret preferences), `6.0-maintenance-tasks.md` (upgrade steps)**Author:** Łukasz Adamczyk-**Last updated:** 2026-10-28+**Last updated:** 2026-10-30**Tracking:** Linear V-3764 · GitHub —## Summarydiff --git a/scripts/test/rspec b/scripts/test/rspecindex ab77b98304..f0649d5842 100755--- a/scripts/test/rspec+++ b/scripts/test/rspec@@ -6,7 +6,7 @@# scripts/test/rspec api spec/controllers/spree/api/v3/admin/orders_controller_spec.rb:12# # targeted: background priority, no queue#-# Engines: core, api, emails, dashboard, mcp, opentelemetry, easypost, meilisearch, stripe.+# Engines: core, api, emails, dashboard, mcp, opentelemetry, easypost, meilisearch, paypal, stripe.# Everything after the engine is passed to rspec; with nothing after it the whole# suite runs through parallel_rspec.#diff --git a/spree/providers/paypal/.rspec b/spree/providers/paypal/.rspecnew file mode 100644index 0000000000..83e16f8044--- /dev/null+++ b/spree/providers/paypal/.rspec@@ -0,0 +1,2 @@+--color+--require spec_helperdiff --git a/spree/providers/paypal/Gemfile b/spree/providers/paypal/Gemfilenew file mode 100644index 0000000000..304a564012--- /dev/null+++ b/spree/providers/paypal/Gemfile@@ -0,0 +1,5 @@+eval_gemfile('../../common_spree_dependencies.rb')++gem 'spree', path: '../../'++gemspecdiff --git a/spree/providers/paypal/LICENSE b/spree/providers/paypal/LICENSEnew file mode 100644index 0000000000..b64b902aef--- /dev/null+++ b/spree/providers/paypal/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026-present, Vendo Sp. z o.o., Vendo Connect Inc.++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/spree/providers/paypal/README.md b/spree/providers/paypal/README.mdnew file mode 100644index 0000000000..5366e1348e--- /dev/null+++ b/spree/providers/paypal/README.md@@ -0,0 +1,49 @@+# Spree PayPal Checkout++Official [PayPal](https://www.paypal.com) payment gateway for+[Spree Commerce](https://spreecommerce.org), built on Spree's payment session+API.++Supports PayPal, Pay Later, Venmo, and card payments that buyers without a+PayPal account make in PayPal's own window. Honors the store's capture setting:+payments are captured at checkout, or authorized and captured later.++## Installation++```bash+spree add paypal+```++Without the Spree CLI, add `gem 'spree_paypal_checkout'` to the `Gemfile` with+the same version requirement as your `spree` gem and run `bundle install`. The+gateway registers itself — there is nothing to generate and no migrations to+run.++## Configuration++Create a PayPal payment method in the admin dashboard and enter the client id+and secret of your PayPal REST app. Leave Test mode on for sandbox credentials+and turn it off for live ones. The webhook is registered with PayPal on save.++Set `PAYPAL_LOG_LEVEL` (for example `debug`) to change how much the PayPal+client logs. Request and response bodies are never logged.++## Upgrading from spree_paypal_checkout 0.x++See the PayPal section of the Spree 5.6 → 6.0 upgrade guide. Two upgrade+steps, `migrate_paypal_payments` and `register_paypal_webhooks`, carry existing+payments and webhooks over; run them before dropping the old+`spree_paypal_checkout_orders` table.++## Testing++The suite runs offline against recorded VCR cassettes:++```bash+bundle exec rake test_app # once+bundle exec rspec+```++Record cassettes against the PayPal sandbox by adding `RECORD_VCR=1`,+`PAYPAL_CLIENT_ID` and `PAYPAL_CLIENT_SECRET` to the environment and running the+`vcr`-tagged examples.diff --git a/spree/providers/paypal/Rakefile b/spree/providers/paypal/Rakefilenew file mode 100644index 0000000000..ba035f76be--- /dev/null+++ b/spree/providers/paypal/Rakefile@@ -0,0 +1,15 @@+require 'rubygems'+require 'rake'+require 'rake/testtask'+require 'rspec/core/rake_task'+require 'spree/testing_support/common_rake'++RSpec::Core::RakeTask.new++task default: :spec++desc "Generates a dummy app for testing"+task :test_app do+ ENV['LIB_NAME'] = 'spree_paypal_checkout'+ Rake::Task['common:test_app'].invoke+enddiff --git a/spree/providers/paypal/app/models/spree/payment_sessions/paypal_checkout.rb b/spree/providers/paypal/app/models/spree/payment_sessions/paypal_checkout.rbnew file mode 100644index 0000000000..52dce53664--- /dev/null+++ b/spree/providers/paypal/app/models/spree/payment_sessions/paypal_checkout.rb@@ -0,0 +1,5 @@+module Spree+ # Stored under this name in `type` columns since 5.x, so it is kept.+ class PaymentSessions::PaypalCheckout < PaymentSession+ end+enddiff --git a/spree/providers/paypal/app/models/spree_paypal_checkout/gateway.rb b/spree/providers/paypal/app/models/spree_paypal_checkout/gateway.rbnew file mode 100644index 0000000000..5bfa208838--- /dev/null+++ b/spree/providers/paypal/app/models/spree_paypal_checkout/gateway.rb@@ -0,0 +1,55 @@+module SpreePaypalCheckout+ # PayPal Checkout gateway built on the payment session API. A session is a+ # PayPal order: the buyer approves it in PayPal's window, then the server+ # captures or authorizes it, so the server is the only thing that moves money.+ class Gateway < ::Spree::Gateway+ self.accepts_money_amounts = true++ preference :client_id, :password+ preference :client_secret, :password+ # The credentials do not say which PayPal environment they belong to.+ preference :test_mode, :boolean, default: true+ # Written by webhook registration, never by an operator.+ preference :webhook_id, :string, internal: true++ validates :preferred_client_id, :preferred_client_secret, presence: true++ def self.logo_url+ 'https://spreecommerce.org/docs/images/integrations/logos/paypal.png'+ end++ def self.docs_url+ 'https://spreecommerce.org/docs/integrations/payments/paypal'+ end++ def provider_class+ self.class+ end++ def default_name+ 'PayPal'+ end++ def method_type+ 'spree_paypal_checkout'+ end++ def payment_icon_name+ 'paypal'+ end++ def session_required?+ true+ end++ def payment_session_class+ Spree::PaymentSessions::PaypalCheckout+ end++ # No saved PayPal accounts in this release, so core never calls+ # create_profile and passes no source to credit and void.+ def payment_profiles_supported?+ false+ end+ end+enddiff --git a/spree/providers/paypal/config/locales/en.yml b/spree/providers/paypal/config/locales/en.ymlnew file mode 100644index 0000000000..e97bcd18af--- /dev/null+++ b/spree/providers/paypal/config/locales/en.yml@@ -0,0 +1,4 @@+---+en:+ spree:+ paypal_checkout: {}diff --git a/spree/providers/paypal/lib/generators/spree_paypal_checkout/install/install_generator.rb b/spree/providers/paypal/lib/generators/spree_paypal_checkout/install/install_generator.rbnew file mode 100644index 0000000000..86cca1651f--- /dev/null+++ b/spree/providers/paypal/lib/generators/spree_paypal_checkout/install/install_generator.rb@@ -0,0 +1,20 @@+require 'rails/generators'+require 'spree/core'++module SpreePaypalCheckout+ module Generators+ # Kept as a no-op so `rake test_app` and any existing+ # `rails g spree_paypal_checkout:install` invocations keep working. The+ # gateway registers itself from the engine and stores its configuration in+ # payment method preferences, so it owns no tables and has nothing to copy+ # into the host app.+ class InstallGenerator < Rails::Generators::Base+ desc 'No-op. spree_paypal_checkout registers its gateway automatically and ships no migrations.'++ def notify_nothing_to_install+ say 'spree_paypal_checkout registers its gateway automatically — nothing to install. ' \+ 'Add a PayPal payment method in the admin to enter your client id and secret.'+ end+ end+ end+enddiff --git a/spree/providers/paypal/lib/spree_paypal_checkout.rb b/spree/providers/paypal/lib/spree_paypal_checkout.rbnew file mode 100644index 0000000000..7f4d76876e--- /dev/null+++ b/spree/providers/paypal/lib/spree_paypal_checkout.rb@@ -0,0 +1,14 @@+require 'paypal_server_sdk'+require 'spree_core'+require 'spree_paypal_checkout/engine'++module SpreePaypalCheckout+ # Background queue for the gem's jobs. Defaults to Spree's default queue.+ def self.queue+ @queue ||= Spree.queues.default+ end++ class << self+ attr_writer :queue+ end+enddiff --git a/spree/providers/paypal/lib/spree_paypal_checkout/engine.rb b/spree/providers/paypal/lib/spree_paypal_checkout/engine.rbnew file mode 100644index 0000000000..9ff986cfa8--- /dev/null+++ b/spree/providers/paypal/lib/spree_paypal_checkout/engine.rb@@ -0,0 +1,14 @@+require 'rails/engine'++module SpreePaypalCheckout+ class Engine < Rails::Engine+ isolate_namespace Spree+ engine_name 'spree_paypal_checkout'++ # Core assigns the payment method registry in its own after_initialize, so+ # appending has to happen in a later one — engine callbacks run in load order.+ config.after_initialize do+ Rails.application.config.spree.payment_methods << SpreePaypalCheckout::Gateway+ end+ end+enddiff --git a/spree/providers/paypal/lib/spree_paypal_checkout/factories.rb b/spree/providers/paypal/lib/spree_paypal_checkout/factories.rbnew file mode 100644index 0000000000..841b96bfea--- /dev/null+++ b/spree/providers/paypal/lib/spree_paypal_checkout/factories.rb@@ -0,0 +1 @@+Dir["#{File.dirname(__FILE__)}/testing_support/factories/**/*.rb"].sort.each { |f| load File.expand_path(f) }diff --git a/spree/providers/paypal/lib/spree_paypal_checkout/testing_support/factories/gateway_factory.rb b/spree/providers/paypal/lib/spree_paypal_checkout/testing_support/factories/gateway_factory.rbnew file mode 100644index 0000000000..50d60de195--- /dev/null+++ b/spree/providers/paypal/lib/spree_paypal_checkout/testing_support/factories/gateway_factory.rb@@ -0,0 +1,18 @@+FactoryBot.define do+ factory :paypal_checkout_gateway, parent: :payment_method, class: 'SpreePaypalCheckout::Gateway' do+ sequence(:name) { |n| "PayPal #{n}" }+ type { 'SpreePaypalCheckout::Gateway' }++ preferences do+ {+ client_id: ENV.fetch('PAYPAL_CLIENT_ID', 'paypal_client_id_test'),+ client_secret: ENV.fetch('PAYPAL_CLIENT_SECRET', 'paypal_client_secret_test'),+ test_mode: true+ }+ end++ trait :with_webhook do+ after(:build) { |gateway| gateway.preferred_webhook_id = 'WH-TEST-1234567890' }+ end+ end+enddiff --git a/spree/providers/paypal/lib/spree_paypal_checkout/testing_support/factories/payment_session_factory.rb b/spree/providers/paypal/lib/spree_paypal_checkout/testing_support/factories/payment_session_factory.rbnew file mode 100644index 0000000000..caf6a35435--- /dev/null+++ b/spree/providers/paypal/lib/spree_paypal_checkout/testing_support/factories/payment_session_factory.rb@@ -0,0 +1,16 @@+FactoryBot.define do+ factory :paypal_checkout_payment_session, class: 'Spree::PaymentSessions::PaypalCheckout' do+ transient do+ owner { create(:order_with_line_items) }+ end++ cart { owner if owner.is_a?(Spree::Cart) }+ order { owner unless owner.is_a?(Spree::Cart) }+ payment_method { create(:paypal_checkout_gateway, store: owner.store) }+ amount { owner.total }+ currency { owner.currency }+ status { 'pending' }+ external_id { SecureRandom.alphanumeric(17).upcase }+ external_data { { 'client_id' => 'paypal_client_id_test', 'intent' => 'CAPTURE' } }+ end+enddiff --git a/spree/providers/paypal/spec/models/spree_paypal_checkout/gateway_spec.rb b/spree/providers/paypal/spec/models/spree_paypal_checkout/gateway_spec.rbnew file mode 100644index 0000000000..308d8efbaa--- /dev/null+++ b/spree/providers/paypal/spec/models/spree_paypal_checkout/gateway_spec.rb@@ -0,0 +1,40 @@+require 'spec_helper'++RSpec.describe SpreePaypalCheckout::Gateway do+ let(:store) { @default_store }+ let(:gateway) { create(:paypal_checkout_gateway, store: store) }++ it 'is registered as a payment method' do+ expect(Rails.application.config.spree.payment_methods).to include(described_class)+ end++ it 'answers paypal_checkout as its api type' do+ expect(described_class.api_type).to eq('paypal_checkout')+ end++ it 'keeps the webhook id internal' do+ expect(gateway.preference_internal(:webhook_id)).to be(true)+ end++ it 'keeps the credentials secret' do+ expect(gateway.preference_type(:client_id)).to eq(:password)+ expect(gateway.preference_type(:client_secret)).to eq(:password)+ end++ it 'starts in test mode' do+ expect(described_class.new.preferred_test_mode).to be(true)+ end++ it 'requires a payment session' do+ expect(gateway.session_required?).to be(true)+ expect(gateway.payment_session_class).to eq(Spree::PaymentSessions::PaypalCheckout)+ end++ it 'saves no payment profiles' do+ expect(gateway.payment_profiles_supported?).to be(false)+ end++ it 'takes money amounts' do+ expect(described_class.accepts_money_amounts).to be(true)+ end+enddiff --git a/spree/providers/paypal/spec/spec_helper.rb b/spree/providers/paypal/spec/spec_helper.rbnew file mode 100644index 0000000000..2ed2accdbb--- /dev/null+++ b/spree/providers/paypal/spec/spec_helper.rb@@ -0,0 +1,76 @@+if ENV['COVERAGE']+ require 'simplecov'+ require 'simplecov-cobertura'+ SimpleCov.root(ENV.fetch('GITHUB_WORKSPACE', File.expand_path('../../..', __dir__)))+ SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter+ SimpleCov.start 'rails' do+ add_group 'Models', 'app/models'+ add_group 'Services', 'app/services'+ add_group 'Presenters', 'app/presenters'+ add_group 'Jobs', 'app/jobs'++ add_filter '/bin/'+ add_filter '/config/'+ add_filter '/db/'+ add_filter '/lib/generators/'+ add_filter '/lib/spree_paypal_checkout/testing_support/'+ add_filter '/lib/tasks/'+ add_filter '/spec/'++ suffix = [ENV.fetch('CI_SHARD', '1'), ENV['TEST_ENV_NUMBER']].compact.reject(&:empty?).join('_')+ coverage_dir "#{ENV['COVERAGE_DIR']}/paypal_#{suffix}" if ENV['COVERAGE_DIR']+ command_name "paypal_shard_#{suffix}"+ end+end++ENV['RAILS_ENV'] ||= 'test'++begin+ require File.expand_path('../dummy/config/environment', __FILE__)+rescue LoadError+ puts 'Could not load dummy application. Please ensure you have run `bundle exec rake test_app`'+end++require 'rspec/rails'+require 'ffaker'++Dir['./spec/support/**/*.rb'].sort.each { |f| require f }++require 'spree/testing_support/factories'+require 'spree/testing_support/jobs'+require 'spree/testing_support/store'+require 'spree/testing_support/preferences'+require 'spree/testing_support/url_helpers'+require 'spree/testing_support/kernel'+require 'spree/testing_support/rspec_retry_config'+require 'spree_paypal_checkout/factories'++RSpec.configure do |config|+ config.color = true+ config.default_formatter = 'progress'+ config.fail_fast = ENV['FAIL_FAST'] || false+ config.infer_spec_type_from_file_location!+ config.mock_with :rspec+ config.raise_errors_for_deprecations!+ config.use_transactional_fixtures = true++ config.before(:suite) do+ Spree::Events.disable!+ end++ config.around(:each, events: true) do |example|+ Spree::Events.enable { example.run }+ end++ config.before(:each) do+ reset_spree_preferences+ I18n.locale = :en+ end++ config.include FactoryBot::Syntax::Methods+ config.include Spree::TestingSupport::Preferences+ config.include Spree::TestingSupport::Kernel++ config.order = :random+ Kernel.srand config.seed+enddiff --git a/spree/providers/paypal/spec/support/vcr.rb b/spree/providers/paypal/spec/support/vcr.rbnew file mode 100644index 0000000000..1f87c8cf39--- /dev/null+++ b/spree/providers/paypal/spec/support/vcr.rb@@ -0,0 +1,33 @@+require 'vcr'+require 'webmock/rspec'++WebMock.disable_net_connect!(net_http_connect_on_start: true, allow_localhost: true)++VCR.configure do |c|+ c.allow_http_connections_when_no_cassette = false+ c.cassette_library_dir = File.join(SpreePaypalCheckout::Engine.root, 'spec', 'vcr')+ c.hook_into :webmock+ c.ignore_localhost = true+ c.configure_rspec_metadata!++ # Offline by default: a missing cassette fails the example rather than quietly+ # recording one against whatever credentials happen to be in the environment.+ # Opt in with RECORD_VCR=1 when you genuinely intend to capture new interactions.+ c.default_cassette_options = { record: ENV['RECORD_VCR'] ? :new_episodes : :none }++ c.filter_sensitive_data('<PAYPAL_CLIENT_ID>') { ENV['PAYPAL_CLIENT_ID'] }+ c.filter_sensitive_data('<PAYPAL_CLIENT_SECRET>') { ENV['PAYPAL_CLIENT_SECRET'] }++ c.before_record do |interaction|+ # The token request carries the credentials as Basic auth and every other+ # call the access token as Bearer; neither is caught by the filters above.+ Array(interaction.request.headers['Authorization']).each do |header|+ interaction.filter!(header, header.sub(/\A(Basic|Bearer) .+\z/, '\1 <FILTERED>'))+ end++ # The token response hands the access token back in its body.+ interaction.response.body = interaction.response.body&.gsub(+ /"access_token"\s*:\s*"[^"]+"/, '"access_token":"<PAYPAL_ACCESS_TOKEN>"'+ )+ end+enddiff --git a/spree/providers/paypal/spree_paypal_checkout.gemspec b/spree/providers/paypal/spree_paypal_checkout.gemspecnew file mode 100644index 0000000000..47eefd9e42--- /dev/null+++ b/spree/providers/paypal/spree_paypal_checkout.gemspec@@ -0,0 +1,32 @@+# encoding: UTF-8++require_relative '../../core/lib/spree/core/version.rb'++Gem::Specification.new do |s|+ s.platform = Gem::Platform::RUBY+ s.name = 'spree_paypal_checkout'+ s.version = Spree.version+ s.authors = ['Vendo Connect Inc.', 'Vendo Sp. z o.o.']+ s.email = '[email protected]'+ s.summary = 'Official PayPal payment gateway for Spree Commerce'+ s.description = 'PayPal, Pay Later, Venmo and guest card checkout through PayPal Checkout, built on the Spree payment session API.'+ s.homepage = 'https://spreecommerce.org'+ s.license = 'MIT'++ s.metadata = {+ "bug_tracker_uri" => "https://github.com/spree/spree/issues",+ "changelog_uri" => "https://github.com/spree/spree/releases/tag/v#{s.version}",+ "documentation_uri" => "https://docs.spreecommerce.org/",+ "source_code_uri" => "https://github.com/spree/spree/tree/v#{s.version}",+ }++ s.required_ruby_version = '>= 3.2'++ s.files = Dir["{app,config,db,lib,vendor}/**/*", "Rakefile", "LICENSE", "README.md"].reject { |f| f.match(/^spec/) && !f.match(/^spec\/fixtures/) }+ s.require_path = 'lib'++ s.add_dependency 'spree_core', s.version+ s.add_dependency 'paypal-server-sdk', '~> 2.4'++ s.add_development_dependency 'vcr'+end