Skip to the content

SELF-HOST · PAYMENTS

Payments on your own server.

Put your own Stripe keys in the settings file and payment fields work. The money goes to your Stripe account, and no Docustay fee applies to it.

Your keys · Your account · Charges are off until you switch them on

YOUR STRIPE KEYS

KEYSTONE_STRIPE_SECRET_KEY

your secret key

KEYSTONE_STRIPE_PUBLISHABLE_KEY

pay inside the page

KEYSTONE_STRIPE_CHARGES_ENABLED

off until you turn it on

Settings

Four settings for payments.

SettingWhat it does
KEYSTONE_STRIPE_SECRET_KEYYour own Stripe secret key. Needed for payment fields.
KEYSTONE_STRIPE_PUBLISHABLE_KEYThe matching publishable key. With it the signer pays inside the signing page; without it, on Stripe's own page, and comes back.
KEYSTONE_STRIPE_CHARGES_ENABLEDOff by default. Live charges are refused until it is on.
KEYSTONE_ENVIRONMENTSet to staging and the server refuses live Stripe keys.
FIG. 01 · STRIPE SETTINGS

Compared with hosted

What is and is not the same.

01

No Docustay fee

A self-hosted install has no Docustay plan, so no Docustay fee is added to a payment. Stripe's own fees still apply.

02

No guided setup

The hosted Set up payments and Stripe connect pages are not available. The app says Connecting is not switched on for this server yet. You use your own keys.

03

Every payment is checked

A payment counts only when Stripe says it is paid. Docustay reads it back from Stripe before it records it.

Questions

Quick answers.

Does Docustay trust the browser about a payment?

No. When the payer comes back to the signing page, Docustay asks Stripe whether the payment was made and records it only if Stripe says it was paid.

How do I try it without real money?

Use Stripe test keys. The app then says the server is in Stripe's test mode, and a Stripe test card pays without moving real money.

Can I use live keys on a staging server?

No. With KEYSTONE_ENVIRONMENT set to staging, live Stripe keys are refused.

Read the settings reference.

Settings reference