Giter Site home page Giter Site logo

bootstripe's Introduction

BootStripe

Bootstrap + Stripe + Stripe.cfc = Pretty Easy Payments

To use this form you only need to replace the secret and publishable Stripe keys in Application.cfc (or place them on the form.cfm and stripe.cfm pages if you do not use the Application.cfc)

To use the form, just upload the files to your web server and access the URL as in the example below:

https://www.grapestack.com/invoice/form.cfm?chargeAmount=1.00&clientName=new&details=consulting%20services

The clientName parameter is a very simple list-based protection you can use to help prevent unauthorized access to your payment form. The list needs to be changed at the top of both form.cfm and stripe.cfm if you decide to use it, otherwise just provide clientName=new (new is one of the default values in the list)

Upon pressing "Submit" the credit card details are sent via AJAX directly to Stripe's servers over SSL, bypassing your server completely, and a token is returned to the browser and added to the form as a hidden field. Once the token has been returned by Stripe the form is then submitted as normal to stripe.cfm. The stripe.cfm page then contacts Stripe's servers and sends the token along with the amount to charge. Stripe uses the token to identify the correct credit card details on their servers and then attempts to charge the specified amount.

The user never leaves your website to make the payment, so your payment page is on your own domain and can be completely custom.

The credit card details never interact with your server and are only sent to Stripe over a secure connection in exchange for a single-use token, so you don't have to worry about PCI compliance because you are never receiving the actual credit card details. You only receive a token that your processing page sends to Stripe, along with the amount you wish to charge, and Stripe returns the result.

For added security it is recommended that you still place your payment form on a secure (HTTPS) page using SSL, but it is not absolutely necessary, only recommended.

https://stripe.com/

Stripe is a full-stack payment solution that lets you start accepting payments in minutes without the usual hassles.

bootstripe's People

Contributors

grapestack avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

tinja

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.