> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/commerce-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/commerce-api/payments/sources/handling-credit-card-sources.md).

# Handling credit card sources

In the Commerce API, sources created from credit cards are [multi-use](/commerce-api/payments/sources.md#reusable-or-single-use), [synchronous](/commerce-api/payments/sources.md#synchronous-or-asynchronous), and [pull-based](/commerce-api/payments/sources.md#pull-or-push). This means that customers aren't required to re-enter payment details before every payment, they are provided instant notification of a payment's approval status, and the amount charged to the card can be updated repeatedly throughout the checkout process. &#x20;

The Sources API supports a [wide range of credit cards](/commerce-api/payments/sources.md).&#x20;

## Creating a credit card source

To create a credit card source, you must CVCs

## Charging a credit card source

You can either [attach the source to a customer](/commerce-api/payments/sources.md#attaching-a-payment-method-to-a-customer) for use in the current checkout and potentially reuse in future payments or [attach it directly to a Cart](/commerce-api/payments/sources/using-the-source-identifier.md#attaching-sources-to-a-cart). In the latter case, the source cannot be reused and will have a [state](/commerce-api/payments/sources.md#source-state) of `consumed` once charged.&#x20;

{% hint style="danger" %}
Credit card sources should be used shortly after they are created. This is because CVC data expires within a few minutes. Orders created with cards that lack CVCs are more likely to be declined and pose a greater fraud risk.
{% endhint %}

Once you have attached the source to a customer or directly to a cart, Digital River can use it when you [submit the Cart](https://docs.digitalriver.com/commerce-api/cart/submitting-a-cart).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.digitalriver.com/commerce-api/payments/sources/handling-credit-card-sources.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
