Payments
Cash on delivery, and taking card payments online.
Cash on delivery
Section titled “Cash on delivery”Cash on delivery is Sworen’s default and is always available. The customer pays the courier; the order counts as money once it is Delivered.
Card payments online
Section titled “Card payments online”Online payments come from apps:
- CMI: card payments through the Centre Monétique Interbancaire, with 3D Secure.
- Stripe: hosted Stripe Checkout, with full or partial refunds.
To turn one on:
- Go to Apps in the admin and enable it.
- Open its page under Apps and enter your credentials.
- Go to Settings → Payment and enable it at checkout.
Stripe webhook
Section titled “Stripe webhook”In your Stripe dashboard, add a webhook endpoint at https://<your store>/api/v1/payments/stripe/webhook for these events: checkout.session.completed, checkout.session.async_payment_succeeded, refund.created, refund.updated and refund.failed. Paste its signing secret (it starts with whsec_) into the Stripe app. Use the same Stripe mode (test or live) as your secret key.
