# CIB and Edahabia cards through Chargily Pay

With Chargily Pay, your buyers pay by CIB or Edahabia card on a secure payment page, and the money lands in your own Chargily account. Chargily's name never shows on your store: buyers see a tile called **CIB / Edahabia card**.

You can connect Chargily Pay or Slick-Pay, not both. To switch, disconnect the other one first.

## Before you start

Open an account at [pay.chargily.com](https://pay.chargily.com). You can connect with a test key first; the live key comes once Chargily verifies your account.

## Connect your account

1. Open **Settings › Payment methods** and press **Connect account** on the Chargily Pay row.
2. In your Chargily dashboard, open **Developers Corner**, choose **Test** or **Live**, and copy the secret key. A test key starts with `test_sk`, a live key with `live_sk`.
3. Paste the key, pick the same mode (Test or Live), choose who pays the fees, and press **Test and connect**.

![The connect window: how to get the key, the key field, the mode, who pays the fees and the card discount](/assets/images/fr-connect-b76bf2e304cfcc11de8d9ed98654577c.webp)

A key in test mode only checks the connection. It takes no real money and is never offered to buyers. When your account is verified, open the row's menu, choose **Switch to live mode**, paste the `live_sk` key and test again. A test key pasted there is refused.

## Switch it on for buyers

After a successful live test, turn on the row's **For customers** switch, then pick the pages where the tile shows: **Cart**, **Fast checkout**, **Landing pages**.

If the **For customers** switch stays greyed out with "Test the key first", press **Test key** in the row's menu. A new key or a change of mode needs a new test.

## Who pays the fees

* **The store**: Chargily's fee comes out of what you receive. The buyer pays the order total.
* **The customer**: the buyer's card tile shows "+ card fees added at payment".

Your Chargily rates are in your Chargily account.

## Good to know

* Only the store owner can paste or change the key. DZBuild shows its last four characters, never the whole key.
* To stop card payments for a while, turn off **For customers**. **Disconnect account** asks you to confirm, then removes the key; you paste it again to come back.

See [Card orders](https://dzbuild.com/docs/payments/card-orders.md) for what happens after the buyer pays, and [Card discount](https://dzbuild.com/docs/payments/prepaid-discount.md) to reward card payments.
