Kill Bill Litle demo
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Gemfile
README.md
app.rb
image1_eProtect.png
image1_eProtect_iFrame.png
integrationMethods.png
thankyou.png

README.md

Kill Bill Litle Demo

This sample app shows you how to integrate Litle (Vantiv) eProtect (PayPage) features with Kill Bill subscriptions APIs.

Prerequisites

Ruby 2.1+ or JRuby 1.7.20+ is recommended. If you don’t have a Ruby installation yet, use RVM:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby

After following the post-installation instructions, you should have access to the ruby and gem executables.

Install the dependencies by running in this folder:

gem install bundler
bundle install

This also assumes:

  • Kill Bill is already setup
  • The default tenant (bob/lazar) has been created
  • The Litle plugin is installed and configured with valid credentials.

Run

To run the app:

KB_URL='http://<host>:<port>' PAYPAGE_ID='<PAYPAGE_ID>' MERCHANT_TX_ID='<MERCHANT_ID>' ORDER_ID='<ORDER_ID>' REPORT_GROUP='<REPORT_GROUP>' ruby app.rb

Then go to http://localhost:4567/ where you should see the Checkout Form loaded from Litle (Vantiv).

You will need to select the desired Integration Method between:

  • eProtect JavaScript API
  • eProtect iFrame API

Integration method

If you selected eProtect JavaScript API, you will need to complete the following fields:

  • First Name
  • Last Name
  • Credit Card number (Account Number for Litle)
  • Credit Card Security Code
  • Credit Card Expiration Date (Month and Year)

Then click the Checkout with PayPage button to proceed with Checkout.

That will:

  • Tokenize the Credit Card in Litle (Vantiv)
  • Create a new Kill Bill account
  • Add a default payment method on this account associated with this token
  • Create a new subscription for the sports car monthly plan (with a $10 30-days trial)
  • Charge the token for $10

Checkout Form

If you selected eProtect iFrame API, you will need to complete the following fields:

  • Credit Card number (Account Number for Litle)
  • Credit Card Expiration Date (Month and Year)
  • Credit Card Security Code

Then click the Submit button to proceed with Checkout.

That will:

  • Tokenize the Credit Card in Litle (Vantiv)
  • Create a new Kill Bill account
  • Add a default payment method on this account associated with this token
  • Create a new subscription for the sports car monthly plan (with a $10 30-days trial)
  • Charge the token for $10

Checkout Form

Both of them will then open the Thank You page:

Thank you Page