## Get a payment's card-reveal handoff

`payments.credentials(strpayment_id)  -> 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

- `payment_id: str`

### Returns

- `class PaymentCredentialsResponse: …`

  - `handoff: Optional[Handoff]`

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

    - `card_ref: Optional[str]`

    - `fetch_url: Optional[str]`

    - `provider: Optional[str]`

    - `user_token: Optional[str]`

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

### Example

```python
import os
from linq import LinqAPIV3

client = LinqAPIV3(
    api_key=os.environ.get("LINQ_API_V3_API_KEY"),  # This is the default and can be omitted
)
response = client.payments.credentials(
    "paymentId",
)
print(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"
  }
}
```
