Guide: get paid by credit card (Stripe)

This guide is for you, the contractor, who wants clients to pay by credit card online. Funds go to your Stripe account. Allow 30–60 minutes. Ask the coordinator for your tenant ID before step 4.

💡 Alternative: Prefer bank transfers? Add your IBAN in Company settings → it will appear on your PDF invoices. Clients can pay by transfer (you'll manually mark invoices as paid).

2. Copy your two API keys (Live mode)

Stripe → DevelopersAPI keys (check Live mode).

  • Publishable key: pk_live_…
  • Secret key: Reveal → sk_live_… (keep private)
2. Copy your two API keys (Live mode)

3. Paste them in Company settings

Site adminCompany settingsStripe configuration:

  • Stripe public key → pk_live_…
  • Stripe secret key → sk_live_…

Save. Webhook secret comes in step 5.

3. Paste them in Company settings

4. Create the webhook in Stripe (with your ID)

Ask the coordinator for your tenant ID (e.g. 3).

Go to https://dashboard.stripe.com/webhooksAdd destination.

In the Stripe form, fill in:

  • Endpoint URL: https://artisan-peinture.com/stripe-webhook/YOUR_ID
    (Example: https://artisan-peinture.com/stripe-webhook/3)
  • Events to listen (one only): checkout.session.completed

Then click Add destination.

4. Create the webhook in Stripe (with your ID)

5. Copy the webhook signing secret (whsec_)

Open the destination → Signing secret → Reveal → whsec_…

Admin → Company settingsStripe webhook secret → paste whsec_… → Save.

5. Copy the webhook signing secret (whsec_)

6. Test with real payment

On the site, create a test quote with a small amount:

  1. Create a quote → click Pay online
  2. Pay with your card
  3. Confirm quote/invoice shows as paid
  4. Confirm you receive the confirmation email

Common issue: payment OK in Stripe but not on site = wrong webhook URL (stripe-webhook/YOUR_ID) or wrong whsec_ in Company settings.

6. Test with real payment