## Start payment-provider onboarding

`payment_providers.connect(strprovider, PaymentProviderConnectParams**kwargs)  -> PaymentProviderConnectResponse`

**post** `/v3/payments/providers/{provider}/connect`

Begins connecting your organization to a payment provider (e.g.
`agentcard`). Returns a hosted URL where an admin authorizes the
connection; on completion the provider redirects back and Linq stores
your connected credentials.

### Parameters

- `provider: str`

- `return_url: str`

  Where to send the admin after they authorize the connection.

### Returns

- `class PaymentProviderConnectResponse: …`

  - `hosted_url: Optional[str]`

    Send the admin here to authorize the connection.

  - `session_id: Optional[str]`

  - `status: Optional[str]`

### 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.payment_providers.connect(
    provider="provider",
    return_url="https://partner.example/settings/payments",
)
print(response.session_id)
```

#### Response

```json
{
  "hosted_url": "https://app.agentcard.sh/connect-platform/tok_abc",
  "session_id": "pcs_9f2a",
  "status": "pending"
}
```
