Add Pay with Amazon to your Solidus-based Spree Commerce solution.
Add solidus_amazon_payments to your Gemfile:
gem 'solidus_amazon_payments', github: 'boomerdigital/solidus_amazon_payments'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g solidus_amazon_payments:install
This gem is not compatible with v1.0 and v1.1
Register for your Amazon Payments account here
You will need to configure Instant Notification Settings in order to accept the callback when a refund is completed. Configure your IPN settings by logging into your Seller Central Account.
The IPN URL will be in the Configuration section of your Spree Commerce instance.
Please see the user guide here for more information
- Setup:
- Register for your Amazon Payments account here
- Ensure you're accessing local version of store through HTTPS, not HTTP
- A simple way to do this is to use the Thin web server. Add it to the Gemfile,
bundle install
, then start it like this:thin start --ssl -p 4001
(or whatever port you want to use) - Then, use
lvh.me
to access your site via:https://lvh.me:4001
(you'll have to tell your browser to trust the SSL cert)
- A simple way to do this is to use the Thin web server. Add it to the Gemfile,
- In the store admin:
- Set your "Amazon Settings" using the items (keys, IDs, etc) from this page https://sellercentral.amazon.com/hz/me/integration/details
- Make sure you've setup an Amazon Payment Method User Guide for more info
- In Amazon Seller Central:
- Set your "Instant Notification" Settings, Merchant URL here: https://sellercentral.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html?
- You can copy/paste this from the store admin in Settings -> Amazon Settings. It should look something like
https://lvh.me:4001/amazon_callback
(you'll have to tell your browser to trust the SSL cert)
- You can copy/paste this from the store admin in Settings -> Amazon Settings. It should look something like
- Create a test user to use in Sandbox Environment using the following link, but be sure you select the correct environment from the drop down menu at the top of the page
- Set your "Instant Notification" Settings, Merchant URL here: https://sellercentral.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html?
- Attempt to purchase a product by logging in via Amazon and paying using Amazon Payments