Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages