SpreePaypal is a gem that integrates PayPal's REST API with the Spree eCommerce platform. It creates a new PayPal payment method, supports the PayPal JavaScript SDK for frontend payment processing, and allows you to configure sandbox or live modes for testing and production.
-
Add this line to your application's Gemfile:
gem 'spree_paypal', github: 'vitkx/spree_paypal', branch: 'master'
-
Install the gem by running:
bundle install
-
Copy & run migrations
bundle exec rails g spree_paypal:install
-
Restart your server
After installation, configure PayPal by adding your client_id
, client_secret
, and sandbox settings in the Spree admin panel under Payment Methods.
Bug reports and pull requests are welcome on GitHub at https://github.com/vitkx/spree_paypal.
The gem is available as open source under the terms of the MIT License.