> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Carte Cadeau via Thunes

> Let customers securely make payments using Carte Cadeau via Thunes on your website or mobile application.

| One-Off Payment | Refunds |
| --------------- | ------- |
| ✓               | ✓       |

## Get started with Carte Cadeau via Thunes

### Before you begin

If this is your first payment method, make sure to follow the [Get started guide](/get-started/overview) to begin processing payments with Primer.

### Configure in the Dashboard

1. **Add Carte Cadeau payment method to your Thunes account**
   Go to your Thunes account and add the payment method Carte Cadeau.

2. **Enable auto-capture for Carte Cadeau**\
   You may need to contact your Thunes account administrator to turn on **auto-capture** for Carte Cadeau. If you don't have this turned on, you will have to perform a separate **Capture** action on your workflow or manually via our [Payments API](https://apiref.primer.io/reference/capture_payment_payments__id__capture_post).

3. **Add Thunes to your Dashboard**\
   Go to the [Connections](/connections/payment-methods) section of the Dashboard and look for `Thunes`.
   Follow the instructions to connect your Thunes processor account to your Primer Dashboard.

4. **Activate Carte Cadeau on the Checkout**\
   Go to the [Checkout](/checkout) section of the Dashboard and activate the Carte Cadeau payment method.
   Then go to the settings view of Carte Cadeau, and make sure that Carte Cadeau is properly set up to use your Thunes processor account.

5. **Configure a Workflow to process payments made with Carte Cadeau**\
   Go to the [Workflow](/workflows), set up the **Authorization** step to process APMs. Finish the workflow with a **Continue payment flow** action.

### Prepare the client session

Carte Cadeau via Thunes leverages the following parameters to process a payment.

Pass them when creating the client session.

| Parameter Name                                                                                                                                                                                                                    | Required | Description                                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------- |
| [currencyCode](/api-reference/v2.4/api-reference/client-session-api/create-a-client-session#response-currency-code)                                                                                                               | ✓        | 3-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format, e.g. `USD` for US dollars |
| [order](/api-reference/v2.4/api-reference/client-session-api/create-a-client-session#response-order) <br /> ↳ [lineItems](/api-reference/v2.4/api-reference/client-session-api/create-a-client-session#response-order-line-items) | ✓        | Details of the line items of the order                                                                                      |
| [amount](/api-reference/v2.4/api-reference/client-session-api/create-a-client-session#response-amount)                                                                                                                            | ✓        | The amount you would like to charge the customer, in minor units. e.g. for \$7, use `700`.                                  |

## Add Carte Cadeau via Thunes into your website or mobile app

<CardGroup>
  <Card title="Drop-in UI" href="/connections/payment-methods/carte-cadeau/dropin">
    Use our customizable drop-in UI to quickly add payment methods to your checkout.
  </Card>

  <Card title="Headless Checkout" href="/connections/payment-methods/carte-cadeau/headless">
    Have the freedom to build your own UI using our headless checkout.
  </Card>
</CardGroup>
