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

> ## Agent Instructions
> For short, quotable answers about SmartAlex (what it is, who it is for, what it costs, where it runs, how it keeps data safe, which apps it connects to), read the facts page at /ai/facts on this site first, then the page it links to. Its last table maps every section of these docs.
> For how to do something, use the step-by-step pages: /learn for whole paths, and each section's first-time pages such as /calls/buy-your-first-number, /agents/create-an-agent or /campaigns/import-your-first-contacts. Give the click path exactly as written there, for example Calls, then Numbers, then Buy number, with the bold button labels unchanged.
> Prices come from the Pricing page at /pricing and the pages under /pricing. Quote a price exactly as written there, with its currency and unit.
> Short answers to common questions are under /help, grouped by section. Legal documents are summarised under /legal; each summary links to the binding text, which prevails over the summary.
> If a feature or screen is not described in these docs, say that you could not find it rather than guessing.
> Pages under /comparisons describe other companies' products as of the date on each page. For SmartAlex's own features and prices, use the product pages.
> The MCP server at /mcp on this site only searches this documentation. To work inside your own SmartAlex workspace (agents, calls, campaigns, contacts), use the SmartAlex MCP server described at /mcp/overview.

# Connect Yoco

> Connect Yoco with your secret key so your agent texts a caller a secure payment link during the call, and the caller pays on Yoco's own page.

To connect Yoco, copy your secret API key from the Yoco dashboard and paste it into the Yoco card in SmartAlex. Then switch on the **Send Payment Link** tool for your agent. When a caller agrees to pay, your agent creates a Yoco checkout and texts the caller the link. The caller pays on Yoco's own page, so no card number is ever spoken or stored.

* **You will have:** an agent that sends a Yoco payment link by SMS during a call.
* **Time:** about five minutes.
* **You need:** the **Power Tools** add-on (\$29/month, see [Add-ons](https://docs.getsmartalex.com/essentials/add-ons.md)) and a Yoco account where you can open **Developers → API keys**. You also need a SmartAlex role that can edit connectors.

> [!NOTE]
>
> In the app: **Sidebar → Agent Settings → Connectors** (`/home?settings=connectors`), then **Yoco** under **Payments**.

## What does Yoco give my agent?

The agent gets one tool, **Send Payment Link**. It creates the Yoco checkout and sends the link by SMS in one step. Yoco payment links are in South African rand (ZAR) only, and the SMS is charged to your wallet like any other text (see [Pricing](https://docs.getsmartalex.com/pricing.md#messaging-chat-and-social)).

The diagram below shows a payment link going from the call to Yoco's page.

```mermaid theme={null}
sequenceDiagram
    participant C as Caller
    participant A as Your agent
    participant S as SmartAlex
    participant Y as Yoco
    C->>A: "I'll pay the deposit now."
    A->>C: "I'll text you a secure link."
    A->>S: Use Send Payment Link (amount, what for, mobile number)
    S->>Y: Create a checkout with your secret key
    Y-->>S: Checkout link
    S->>C: SMS with the amount and the link
    C->>Y: Pays on Yoco's page
```

What the caller experiences:

1. They agree to pay, and the agent confirms the amount, what it is for and a mobile number.
2. A text arrives within moments with a description, the amount (for example "ZAR 450.00") and the **Pay here** link.
3. They tap the link and pay on Yoco's page.

If your workspace has saved its terms, they and a cancel link travel in the same text.

## How do I connect Yoco?

**1. Add Power Tools**

In SmartAlex, click **Sidebar → Agent Settings → Connectors**. Under **Payments**, the **Yoco** card reads **Needs Power Tools** until you have the add-on, and **Included with Power Tools** once you do. Without it, opening the card shows **Yoco Payments** with a **Power Tools** badge and a lock. Click it to open the dialog that adds Power Tools, or add it in [Add-ons](https://docs.getsmartalex.com/essentials/add-ons.md).

**2. Open your Yoco dashboard**

In a new tab, sign in to Yoco and go to **Developers → API keys**. This is the path SmartAlex's own help gives.

**3. Copy the secret key**

Copy your secret API key. It starts with `sk_live_` for real payments, or `sk_test_` to try it first. Keep the tab open in case you need to copy again.

**4. Paste it into SmartAlex**

Back in SmartAlex, open the **Yoco** card ("Take card payments with Yoco payment links."). The form is titled **Yoco Payments** and says "Find your secret API key in the Yoco dashboard → Developers → API keys. Paste the key starting with sk\_live\_ or sk\_test\_." Paste the key into **Secret API key** (placeholder `sk_live_...`).

![The Yoco connector form with the Secret API key field](https://mintcdn.com/smartalex/Lsiy_I41mrzc0zEG/images/screens/integrations-hub/yoco-secret-key-field.webp?fit=max\&auto=format\&n=Lsiy_I41mrzc0zEG\&q=85\&s=1b063dffa1bea6d3e663278a7902ca26)

Paste your Yoco secret key here.

**5. Save**

Click **Save**. You see "Yoco connected." SmartAlex stores the key encrypted and never shows it in the browser again.

**6. Switch on the tool**

Click **Sidebar → Agent Settings → Tools**, pick your agent, find **Send Payment Link** ("Send a secure Yoco payment link for an agreed purchase.") and switch it on.

![Send Payment Link switched on in Agent Settings Tools](https://mintcdn.com/smartalex/1aJfW-RE1YMT8lGO/images/screens/integrations-hub/yoco-send-payment-link-tool.webp?fit=max\&auto=format\&n=1aJfW-RE1YMT8lGO\&q=85\&s=d4cac69577eae216ef98a537c7b6c08c)

Switch on Send Payment Link for the agent.

## Settings

The Yoco card has one form.

| Setting | What it does | Default | When to change it |
| - | - | - | - |
| **Secret API key** | Your Yoco secret key. SmartAlex uses it to create checkouts on your Yoco account, and for nothing else. | Empty | Paste it once. Use an `sk_test_` key while you test. |
| **Save** / **Replace key** | Saves the key. Once a key is on file the button reads **Replace key**. | Save | Click **Replace key** to move from a test key to a live key, or after rotating your key in Yoco. |
| **Disconnect** | Removes the key. Shown only when a key is on file. | Not shown | When you stop taking payments through SmartAlex. |
| **Cancel** | Closes the form without saving. | n/a | When you opened it by mistake. |

The tool has its own settings under **Sidebar → Agent Settings → Tools**.

| Setting | What it does | Default | When to change it |
| - | - | - | - |
| **Send Payment Link** switch | Lets this agent create and text a Yoco payment link. | Off | Switch on for agents that should take payment. |
| **A person approves this first** | Holds each payment link until a person approves it on the Approvals page. The agent tells the caller a colleague will confirm. Cancelled after 24 hours without an answer. | Off | Switch on if you want a person to check every payment. |
| **Approver** | The one team member who approves. You must choose one before the switch will turn on ("Choose who approves first."). | None | Pick the person who watches the Approvals page. |

## What does Yoco ask for?

Yoco does not show a sign-in screen. You paste a secret key, and that key lets SmartAlex create checkouts on your Yoco account. To stop it, replace or disconnect the key.

## Check it worked

1. Open the **Yoco** card again. The form says "A Yoco secret key is on file. Paste a new key to replace it, or disconnect." and shows **Disconnect** and **Replace key**.
2. Call your agent, agree a small amount and ask to pay.
3. A text arrives with the amount and a **Pay here** link, and the link opens Yoco's page.

The full walk-through is in [Take payments on a call](https://docs.getsmartalex.com/recipes/take-payments-on-a-call.md).

## How do I disconnect Yoco?

**1. Open the card**

Click **Sidebar → Agent Settings → Connectors → Yoco**.

**2. Disconnect**

Click **Disconnect** and confirm "Disconnect Yoco? Agents will stop being able to send payment links." You see "Yoco disconnected."

To switch to a different key instead, paste it and click **Replace key**.

## If it does not work

| What you see | What to do |
| - | - |
| "Please paste your Yoco secret key." | Paste the key into **Secret API key**, then click **Save**. |
| "Could not save Yoco key." | Try again. If it keeps failing, contact support. |
| **Needs Power Tools** on the card | Add Power Tools in [Add-ons](https://docs.getsmartalex.com/essentials/add-ons.md), then connect. |
| The agent says payment is not set up | Connect Yoco, and check **Send Payment Link** is on for that agent. |
| The agent asks for the mobile number again | The number must include the country code, for example +27. |
| The agent reads the link out instead of texting it | The text could not be sent, so the agent reads the link to let the caller still pay. Check your wallet balance. |
| The agent says it could not create the link | Check the key is still valid in Yoco, then click **Replace key**. |

## Questions people ask

> [accordion] Does the agent hear or store the caller's card number?
>
> No. The caller pays on Yoco's own page. The card number never goes through the call, SmartAlex or your agent.

> [accordion] Which currencies does Yoco support?
>
> South African rand only. Yoco's checkout supports nothing else, so the link is always in ZAR.

> [accordion] Should I use a live or a test key?
>
> Start with an `sk_test_` key to check the whole flow. When you are happy, click **Replace key** and paste your `sk_live_` key.

> [accordion] Where does the money go?
>
> Straight to your own Yoco account. Payouts, refunds and reports stay in your Yoco dashboard exactly as before.

> [accordion] Can I check each payment before the link goes out?
>
> Yes. Switch on **A person approves this first** for **Send Payment Link**, and pick the person who approves.

> [accordion] Can I use Stripe instead?
>
> Yes. Stripe creates payment links and looks up customers and invoices. See [Connect Stripe](https://docs.getsmartalex.com/integrations/stripe.md).

## Next

> [card] [Connect Stripe](https://docs.getsmartalex.com/integrations/stripe.md)
>
> Payment links, customers and invoices from your Stripe account.

> [card] [Take payments on a call](https://docs.getsmartalex.com/recipes/take-payments-on-a-call.md)
>
> The full recipe, from add-on to test call.

> [card] [How connectors work](https://docs.getsmartalex.com/integrations/how-connectors-work.md)
>
> Tools per agent, limits and safety steps.

> [card] [Add-ons](https://docs.getsmartalex.com/essentials/add-ons.md)
>
> What Power Tools includes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.