Running KWIQ POS? Card payments come built in.

Developers

Payments you can build on

A predictable REST API, signed webhooks and SDKs for online, in-person and recurring payments. Start in the sandbox in minutes, then go live with the same code.

  • REST + JSON
  • Signed webhooks
  • Idempotent retries
# Create and capture a $48.20 payment
curl https://api.kwiqpayments.com/v1/payments \
  -u "$KWIQ_SECRET_KEY:" \
  -H "Idempotency-Key: 3f1c9a2e-order-2048" \
  -d amount=4820 \
  -d currency=usd \
  -d payment_method=pm_card_visa \
  -d capture=true \
  -d "metadata[order_id]=2048"
import Kwiq from "@kwiq/payments";

const kwiq = new Kwiq(process.env.KWIQ_SECRET_KEY);

const payment = await kwiq.payments.create(
  {
    amount: 4820, // cents
    currency: "usd",
    payment_method: "pm_card_visa",
    capture: true,
    metadata: { order_id: "2048" },
  },
  { idempotencyKey: crypto.randomUUID() }
);

console.log(payment.status); // "succeeded"
import os, uuid
import kwiq

kwiq.api_key = os.environ["KWIQ_SECRET_KEY"]

payment = kwiq.Payment.create(
    amount=4820,  # cents
    currency="usd",
    payment_method="pm_card_visa",
    capture=True,
    metadata={"order_id": "2048"},
    idempotency_key=str(uuid.uuid4()),
)
print(payment.status)  # "succeeded"

Integration paths

Choose how much you want to build

Hours

No-code plugins

Install a plugin for your ecommerce platform, paste your keys and start taking payments. Updates are handled for you.

Days

Hosted checkout & SDKs

Redirect to a hosted page or embed hosted fields with our JavaScript and mobile SDKs. Card data never touches your servers.

Full control

REST API

Payments, customers, refunds, subscriptions, payouts, disputes and reports. Everything in the dashboard is in the API.

Quickstart

From zero to a test payment

  1. Get sandbox keys

    Request access and you get a test secret key (ksk_test_…) and publishable key (kpk_test_…).

  2. Create a payment

    Send a POST /v1/payments with an amount in cents, a currency and a test payment method.

  3. Handle the webhook

    Listen for payment.succeeded to fulfil the order, and verify the signature on every event.

  4. Go live

    Complete the go-live checklist, swap in live keys, and the same code takes real payments.

Response · 200 OK
{
  "id": "pay_7Hq2Lk9Xw3",
  "object": "payment",
  "amount": 4820,
  "currency": "usd",
  "status": "succeeded",
  "captured": true,
  "payment_method": {
    "type": "card",
    "card": { "brand": "visa", "last4": "1111", "funding": "credit" }
  },
  "checks": { "cvc": "pass", "postal_code": "pass" },
  "metadata": { "order_id": "2048" },
  "livemode": false,
  "created": 1796083200
}

Sandbox

Test cards and simulated outcomes

The sandbox behaves like production without moving money. Use any future expiry date and any three-digit CVC (four for Amex).

Sandbox test cards
Card numberBrandResult
4111 1111 1111 1111VisaApproved
5555 5555 5555 4444MastercardApproved
3782 822463 10005American ExpressApproved
6011 1111 1111 1117DiscoverApproved
4000 0000 0000 0002VisaDeclined: generic decline
4000 0000 0000 3220Visa3-D Secure challenge required
4000 0000 0000 0259VisaApproved, then disputed (simulates a chargeback)

Core concepts

Keys, webhooks and safe retries

API keys

Secret keys (ksk_) stay on your server. Publishable keys (kpk_) are safe in the browser or app. Test and live keys are separate, can be rolled at any time and can be restricted to specific resources.

Webhooks

Events such as payment.succeeded, refund.created, dispute.opened and payout.paid are signed with a Kwiq-Signature header and retried with backoff if your endpoint is down.

Idempotency

Send an Idempotency-Key header on any POST. If a network error makes you retry, we return the original result instead of charging twice.

SDKs

Official libraries for the languages and platforms you already use.

Node.jsPythonPHPJava.NETRubyGoiOSAndroidJavaScript (browser)

In-person integrations

Connect terminals to your point of sale

Three modes, from no integration at all to full control. In every mode the terminal reads and encrypts the card, so your software stays out of PCI scope for card data.

Standalone

No integration. Staff key the amount on the terminal, and payments sync to the dashboard and reports.

Cloud

Your POS sends a payment request to a terminal through our API, over the internet. Works across networks and from cloud-hosted POS software.

Semi-integrated

Your POS talks to the terminal on the local network for the lowest latency, with automatic fallback to the cloud.

Operations

Every payment operation you need

Supported payment operations
OperationEndpointUse it to
AuthorizePOST /v1/payments with capture=falseHold funds now and capture later, for example when an order ships
CapturePOST /v1/payments/:id/captureCollect all or part of an authorized amount
Incremental authorizationPOST /v1/payments/:id/incrementRaise a hold for hotel stays, rentals or bar tabs
Tip adjustPOST /v1/payments/:id/tipAdd a tip after the card was authorized
VoidPOST /v1/payments/:id/voidCancel an authorization before it settles, with no fee
RefundPOST /v1/refundsReturn all or part of a settled payment
Card verificationPOST /v1/payment_methods/:id/verifyCheck a card with a zero-dollar authorization before saving it
Batch closePOST /v1/batches/closeSettle the day's payments on demand, or let the daily auto-close do it

Go-live checklist

Before switching to live keys we review your integration together: webhook signature checks, idempotency on retries, error handling for declines and a test refund. For in-person integrations we also certify the terminal flow. Contact us to schedule.

Ready to build?

Request sandbox keys and a member of our integrations team will help you from first test payment to go-live.