From e7cc98309763648b439f6a283c6b301f0f28e364 Mon Sep 17 00:00:00 2001 From: Mikko Koski Date: Wed, 12 Oct 2016 21:54:27 +0300 Subject: [PATCH] Fakepal doc --- docs/README.md | 4 ++++ docs/using-fakepal.md | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 docs/using-fakepal.md diff --git a/docs/README.md b/docs/README.md index 52c93b8939..92b83e939f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -76,6 +76,10 @@ This guide shows how upgrade the Facebook SDK version This document explains what is SessionContextStore, how and when to use it. +#### [Using Fakepal](./using-fakepal.md) + +This guide shows how to use "Fakepal", which is a fake PayPal implementation that can be used for development purposes + ## Process documentation Documentation of the development process. diff --git a/docs/using-fakepal.md b/docs/using-fakepal.md new file mode 100644 index 0000000000..36d07e5659 --- /dev/null +++ b/docs/using-fakepal.md @@ -0,0 +1,15 @@ +# Using Fakepal + +Fakepal is a fake PayPal implementation that can be used for development purposes. It's also used by the unit and feature tests. + +## Turn on Fakepal + +To use Fakepal, change the value of `paypal_implementation` environment variable from `real` to `fake`. You can either edit the `config.yml` file or pass the environment variable while starting the Rails server: + +``` +> paypal_implementation=fake rails s +``` + +## File storage + +Fakepal uses file based storage to store account information. Change the value of `fakepal_store` environment variable to control the file location.