0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Integration of Stripe payment gateway for use with Piggybak
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

= 1.7.4
 Project Readme

Piggybak Stripe

Integration of Stripe payment gateway with Piggybak.

Installation

The following markups are supported. The dependencies listed are required if you wish to run the library.

  1. Add piggybak_stripe gem to Gemfile gem 'piggybak_stripe'

  2. bundle install

  3. Add require for piggybak_stripe to your main javascript manifest (assets/javascripts/application.js) //= require piggybak_stripe

  4. Add javascript include tag for Stripe's js library into your application layout. NOTE: This include tag needs to go above where your main javascript files are included.
    <script type="text/javascript" src="https://js.stripe.com/v1/"></script> <%= javascript_include_tag "application" %>

  5. Start the app, and navigate to Rails Admin. Create a new payment method with Stripe as the calculator and add the following Stripe keys (obtained from your Stripe account): *test_publishable_key *test_secret_key *live_publishable_key *live_secret_key Admin Settings

  6. Configure piggybak's gateway mode:
    config.activemerchant_mode = :test OR config.activemerchant_mode = :production