Home › Developers
Developers

A payment API developers actually enjoy

Integrate payments with a predictable REST API, JSON responses, idempotency keys and real-time webhooks. Test everything in a free sandbox before going live.

Last updated:

A simple charge request

Create a token on the client with our JavaScript fields, then send it to your server and create a charge. Every write request accepts an idempotency key, so a network retry never creates a duplicate charge.

Webhooks notify your system about payments, refunds, disputes and subscription events. Each webhook is signed so you can verify it came from cybersource.

Example: create a charge

curl https://api.business-cybersource.us.com/v1/charges \
  -u sk_test_your_key: \
  -H "Idempotency-Key: 7c1e-order-1042" \
  -d amount=4999 \
  -d currency=usd \
  -d source=tok_visa \
  -d description="Order #1042"

Features

REST API

Resource-based URLs and JSON.

JS fields

Secure, styleable card inputs.

SDKs

Server libraries for common languages.

Webhooks

Signed, retried event delivery.

Sandbox

Test cards and simulated declines.

Idempotency

Safe retries without duplicates.

How it works

Get sandbox keys

Create a test account.

Build & test

Use test cards and webhooks.

Go live

Swap to live keys after approval.

Frequently asked questions

Is there a sandbox?

Yes. Every account includes a sandbox with test cards and simulated outcomes.

Do you support webhooks?

Yes. Signed webhooks cover payments, refunds, disputes and subscriptions.

What are idempotency keys?

A unique key on a request that ensures retries do not create duplicate charges.

Which languages are supported?

Any language that can make HTTPS requests can use the REST API.

Ready to get paid with one button?

Get a transparent quote from our US payments team.

Get a free quote