Skip to content

Stripe Setup

Setting Up Stripe Card Payments

Card payments settle directly to your own Stripe account. You connect it with your Stripe API keys and one webhook that you create in your Stripe Dashboard. There is no "Connect with Stripe" button and Cartly does not create the webhook for you.

Prerequisites

  • A Stripe account. If you do not have one, create it at stripe.com.
  • Email delivery configured in Settings → Email. Card checkout is offered only once your store can send order confirmations.

Step 1: Enter Your API Keys

  1. Go to Settings → Payments and turn on Enable Stripe card payments.
  2. In your Stripe Dashboard, open Developers → API keys.
  3. Paste the Publishable key (pk_…) and the Secret key (sk_…) into Cartly. The secret key is encrypted at rest and shows as ******** once saved.

Step 2: Create the Webhook Endpoint (Required)

  1. Copy the webhook URL shown under 1. Add this webhook endpoint in Stripe on the Payments page. It looks like https://your-store.mycartly.pro/webhooks/stripe/checkout/<your shop ID> and is unique to your store.
  2. In your Stripe Dashboard, open Developers → Webhooks and add an endpoint with that URL.
  3. Subscribe the endpoint to these events: payment_intent.succeeded, payment_intent.payment_failed, charge.refunded and charge.dispute.created — payments, failed payments, refunds and disputes made in your Stripe Dashboard then reach your Cartly orders.

Step 3: Save the Signing Secret

Open the endpoint you just created in Stripe and copy its signing secret (whsec_…). Paste it into 2. Webhook signing secret on the Payments page and click Save. Card checkout stays hidden on your storefront until this secret is saved: Cartly confirms every card order through this webhook.

Step 4: Test the Connection

Click Test Stripe Connection. It checks your saved secret key against Stripe and tells you whether it is a test or a live key. Save first if you just changed the key.

Test Mode vs. Live Mode

The mode follows the keys you enter. With test keys (pk_test_… / sk_test_…) no real money moves; with live keys (pk_live_… / sk_live_…) customers are charged for real. Stripe keeps separate webhooks for test and live mode, so when you switch to live keys, create the webhook endpoint again in live mode and save its new signing secret.

Test Card Numbers

With test keys, use these Stripe test cards:

  • 4242 4242 4242 4242 — Successful payment
  • 4000 0000 0000 3220 — Requires 3D Secure authentication
  • 4000 0000 0000 9995 — Payment declined (insufficient funds)

Use any future expiry date and any three-digit CVC.

Payment Methods

Customers pay by credit or debit card. Apple Pay, Google Pay and other methods appear at checkout when you turn them on in your Stripe Dashboard and the customer's device supports them.

Payouts

Stripe pays your earnings out to the bank account linked to your Stripe account on Stripe's payout schedule. You can view payout schedules and history in your Stripe Dashboard. See also Taking Payments with Your Own Stripe Account.

War das hilfreich?