## Get a payment's card-reveal handoff

`client.payments.credentials(stringpaymentID, RequestOptionsoptions?): PaymentCredentialsResponse`

**get** `/v3/payments/{paymentId}/credentials`

Returns a short-lived handoff for a `ready` payment. Fetch the card
credentials **directly from the provider** with the returned `user_token`
at `fetch_url` — the card number never passes through Linq. Do not persist
PAN/CVC.

### Parameters

- `paymentID: string`

### Returns

- `PaymentCredentialsResponse`

  - `handoff?: Handoff`

    Fetch the card directly from the provider with these — never through Linq.

    - `card_ref?: string`

    - `fetch_url?: string`

    - `provider?: string`

    - `user_token?: string`

      Short-lived bearer to fetch the card from the provider.

### Example

```typescript
import LinqAPIV3 from '@linqapp/sdk';

const client = new LinqAPIV3({
  apiKey: process.env['LINQ_API_V3_API_KEY'], // This is the default and can be omitted
});

const response = await client.payments.credentials('paymentId');

console.log(response.handoff);
```

#### Response

```json
{
  "handoff": {
    "card_ref": "card_7h2k",
    "fetch_url": "https://api.agentcard.sh/api/v2/cards/card_7h2k",
    "provider": "agentcard",
    "user_token": "user_token"
  }
}
```
