Docs · Payments

Take payments on your JustCopy site with your own Stripe account

Your site can sell things and take memberships. Buyers pay on Stripe's secure checkout page, and the money goes straight to your own Stripe account. JustCopy does not hold the money and takes no cut.

You need a Stripe account. There is no other built-in checkout. Setup takes three steps.

Step 1: Turn on Payments

  1. Open your project in the studio.
  2. Tap the project name at the top to open the project menu.
  3. Open Settings, then “What your app can do”.
  4. Turn on Payments.

A Payments tab appears next to “Your app”.

Step 2: Connect your Stripe account

  1. Open the Payments tab, then Setup.
  2. Open Stripe's API keys page: dashboard.stripe.com/apikeys (in Stripe: Developers → API keys).
  3. Copy the publishable key. It starts with pk_live_ or pk_test_.
  4. Copy the secret key. It starts with sk_live_ or sk_test_. Stripe hides it until you press Reveal.
  5. Paste both keys into Setup and press Save.

JustCopy checks the keys with Stripe right away. With live keys you see “Connected to your account name· taking real payments”. With test keys you see that it is in test mode, and no real money moves.

Your secret key is stored encrypted and is never placed in your site's pages.

If a key is refused

“One key is a live key and the other a test key. Copy both from the same mode in Stripe.”

Both keys must come from the same mode. Stripe has a test mode switch at the top of the page.

“Stripe did not accept this secret key. Copy it again from Stripe → Developers → API keys.”

The secret key was copied with a missing or extra character, or it was replaced in Stripe.

“This key cannot read the account. Use the standard secret key, not a restricted one.”

A restricted key was pasted. Use the standard secret key from the same page.

“The publishable key should start with pk_live_ or pk_test_. It looks like a different key was pasted.”

Something other than the publishable key went into the first box.

Step 3: Ask for what you sell

Tell the chat what you want to sell, in your own words. For example:

When a buyer taps Buy, they go to Stripe's secure checkout page and come back to your site after paying.

For a membership or any other repeating payment, first create the price in Stripe: Product catalog → add a product → give it a recurring price. Then tell the chat the product's name.

You can turn on Payments on any plan. Changing a site after its first build, including adding a Buy button, needs a paid plan, starting with Hobby. See plans.

Try it before taking real money

  1. Connect your test keys (pk_test_ and sk_test_) first.
  2. Tap Buy on your site and pay with Stripe's test card 4242 4242 4242 4242, any future date and any CVC.
  3. When it works, go back to Setup and paste your live keys instead.

Payment updates are automatic

When you save your keys, JustCopy also sets up payment updates in your Stripe account for you, so your site learns about payments and subscription changes on its own. There is nothing to copy. You will see it in Stripe under Developers → Webhooks as “JustCopy: payment updates for your site”.

Good to know

Questions

Does JustCopy take a cut of my sales?

No. Money goes straight to your own Stripe account. JustCopy does not hold the money and takes no cut. Stripe charges its own processing fees.

Is my secret key safe?

Yes. Your secret key is stored encrypted and is never placed in your site's pages, so visitors cannot see it.

What is the difference between test and live keys?

Test keys (pk_test_ and sk_test_) let you try a purchase with Stripe's test card 4242 4242 4242 4242, any future date and any CVC. No real money moves. Live keys (pk_live_ and sk_live_) take real payments.

Can I use PayPal?

Not today. Payments on JustCopy sites work with Stripe only.

Which countries can take payments?

Any country where Stripe accounts are available. Stripe keeps the list at stripe.com/global.

Stripe's list of countries

Need help?

Email support@justcopy.ai and tell us which site you are working on.