Learn how to view, add, edit, and remove payment methods in Spree.
Payments are a vital part of any e-commerce store. Spree offers a flexible and modular system for managing payment methods, supporting both out-of-the-box and third-party options.
Not all payment methods are available by default - most require the installation of additional gems by a developer before they can be used in the admin interface.
To manage payments, navigate to the Payments tab of the Settings menu.
Enabled methods are those that are configured and can be used by customers on checkout.You can easily modify the display settings of enabled payment methods by changing the visibility and active status.
Additional payment gateways (e.g., Stripe) can be made available by having your developers install the relevant gems. For example, Stripe gateway is free to use, but requires adding the spree_stripe gem to your store’s codebase before it becomes available in the admin interface.For more information about our native Stripe integration, see Integrations → Stripe Gateway.Once a payment method has been installed, it appears in the Available Payment Methods list. From there, it can be added, configured, or removed as needed.
To add a payment method, click Add on the corresponding row in the Available Payment Methods list. This will direct you to the payment method creation form for that method.Depending on the payment method you’re adding, the sections displayed in the form may differ. The following example covers Stripe which has 2 distinct sections:
Once you’ve entered all the required fields, click Create to add the payment method.The method will now be listed in your store’s enabled payment methods and will be available to users on checkout (provided it is active and visible).
To edit a payment method, click on the corresponding row in the enabled payment methods list. This will direct you to the edit form for that method.Feel free to update any of the display settings for the payment method, but be very cautious when editing payment provider settings.
Swapping payment provider accounts on an active store can disrupt payment processing and lead to failed transactions or reporting inconsistencies. Ensure all pending payments are settled and test the new account thoroughly in a staging environment before applying changes in production.
To remove a payment method, simply open the edit form as shown above and click Delete.
Once a payment method is associated with an order, it cannot be deleted.
Deleting a payment method moves it from the enabled payment methods list back into the available payments list. It does not uninstall the associated gem. A developer would need to remove it from the codebase if complete deactivation is desired.