Documentation You are here: start » integration » ruby » gems
type:
integration
system:
ruby
name:
Ruby Helper Gems
description:
Helper Gems for Ruby
tags:
gem, gems, muddleman

Ruby Helper Gems

Please note: The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please post in our forum, but if we cannot offer assistance (due to unfamiliarity with this particular system or language) we apologize in advance.

Description

Below are some helper gems made by members of our community for bringing FoxyCart integration and functionality into your Ruby projects

foxycart_helpers gem

Features

  • For plain Ruby. Framework independant.
  • Does not depend on Rails but automatically loads helpers into the Rails environment if used in a Rails app.
  • Standalone XML datafeed webhook (Rack) endpoint. Features automatic decryption and parsing of the XML. Delivered to the application as a simple hash that's ready for processing or passing to a background job.
  • loader.js helpers that provide you with the full HTML element or script URL for use in templates (etc).
  • Programmatic generation of HMAC product validation payloads.
  • Generation of “cart” links, either HMAC validated or plain (supports arbitrary query string params like in the cheat sheet).
  • Configurable and flexible.

middleman-foxycart gem

Features

  • Configure with API Key and store URL
  • For use with Middleman static site generator.
  • Provides the JS snippet to be placed directly into your templates for inclusion on those pages automatically.
  • Product link helpers to automatically generate product links (HMAC or plain).
  • Uses the above gem under the hood.

Site Tools