Awesome
Paypal Payment
Module for Paypal payment functionality in the Trado Ecommerce platform. If you would like to get started using the Trado Ecommerce platform, head on over to the Official site!
Installation
Add module to your Gemfile:
gem 'trado_paypal_module'
Then run bundle to install the Gem:
bundle install
Now generate migrations, set up environment configurations and assign model concerns:
rails generate trado_paypal_module:install
bundle exec rake db:migrate
Assign Paypal sensitive data:
config/secrets.yml
development:
transaction_link: "https://sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id="
paypal_login: me@example.com
paypal_password: 873264823432
paypal_signature: VUYWIUBDBDQowqdgiuwdowbqwbQDQJW6
production:
transaction_link: "https://sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id="
paypal_login: me@example.com
paypal_password: 873264823432
paypal_signature: VUYWIUBDBDQowqdgiuwdowbqwbQDQJW6
(You can sign up for a PayPal developer account at the developer dashboard)
You can also customise the HTML for the PayPal fields in your checkout:
rails generate trado_paypal_module:views
Restart the main application server:
foreman start -f Procfile.dev
Versioning
Trado PayPal module follows Semantic Versioning 2.0 as defined at http://semver.org.
How to contribute
- Fork the project
- Create your feature or bug fix
- Add the requried tests for it.
- Commit (do not change version or history)
- Send a pull request against the development branch
Copyright
Copyright (c) 2016 Tom Dallimore (@tom_dallimore)
Licenced under the MIT licence.