0.0
No commit activity in last 3 years
No release in over 3 years
Stripe Payment method for office_clerk ecommerce system.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
 Dependencies

Runtime

~> 1.0.0
>= 0
 Project Readme

Summary

This extension allows you to add Stripe payment module to your shop. You can link it with your Stripe account to charge money for clients' orders.

Installation

Stripe Clerk is used in sales_clerk, you can see how to use it there. If you want to use it in your own shop, follow the steps below:

  • add stripe_clerk engine by adding the following lines to your shop's Gemfile:

    gem 'stripe_clerk'

    gem 'stripe'

  • add the following line to routes (sales_clerk/config/routes.rb):

    mount StripeClerk::Engine => "/"

  • add the following line to sales_clerk/app/assets/javascripts/sales_clerk.js:

    //= require stripe_clerk/charges

  • add styling to sales_clerk's app/assets/stylesheets/sales_clerk.css.scss (link).

  • add partial view payment_stripe.haml or roll your own view

    = render :partial => 'payment_stripe', :locals => { :order => @order }

Configuration

In order to use to make charges, you need to have a Stripe account. You can register here.

  1. Configure your Stripe account credits.

Link your credentials from Stripe account (Your Account -> Account setting -> API keys) with environment variables in config/initializers/stripe.rb:

  • publishable_key => ENV['STRIPE_PUBLISHABLE_KEY']
  • secret_key => ENV['STRIPE_SECRET_KEY']

Remember not to put them directly into app!

  1. You can also custom your Stripe's frame appearance, for example adding your shop logo, label or change currency. More details in Stripe checkout documentation.

stripe

  1. Change the logo on the stripe form by adding a your_stripe_logo.png to your assets.
  2. Add your company name to the for by setting locale key stripe_clerk.company

Credits

Stripe Clerk engine was made as a project of Rails Girls Summer of Code 2015 program.

RubyClerks: Thanks to project author and our amazing mentor Torsten Rüger

TeamGirlsCodersWarsaw: Thanks to our fantastic coaches: Jarek, Łukasz, Tomasz and Piotr and our lovely supervisor Magda!

Authors: Anna Góra & Barbara Kłosowska & Torsten Ruger