Skip to content

DylanLacey/piggybak_stripe

 
 

Repository files navigation

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

About

Piggybak integration for Stripe payment gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 73.9%
  • HTML 21.5%
  • JavaScript 2.5%
  • CSS 2.1%