The project is in a healthy, maintained state
Spree Commerce Products payment methods Extension supporting Ruby 3.1, Rails 7.1 and Spree 4.10
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

>= 0
= 5.3.6
>= 5.3.0
 Project Readme

SpreeProductsPaymentMethods

spree_products_payment_methods lets you restrict which payment methods are available per product.

At checkout, the customer is offered only the payment methods allowed by every product in their cart. If a shop sells both ordinary goods and something that cannot be paid for on delivery, this keeps the impossible option from ever appearing.

Features

  • Choose the allowed payment methods on each product's admin page
  • Checkout shows the intersection of what every product in the cart allows
  • Products with nothing selected fall back to allowing all payment methods

Installation

Add this line to your application's Gemfile:

gem 'spree_products_payment_methods'

Then run:

bundle install
bin/rails g spree_products_payment_methods:install

The generator copies the migration that creates the join table between products and payment methods.

Usage

Open a product in the Spree admin and pick the payment methods it may be bought with. Leave the selection empty to allow all of them.

Requirements

  • Spree 5.3.6

Licence

AGPL-3.0-or-later. See LICENSE.