# How do I connect Moyasar to my store?

**Moyasar** lets customers in Saudi Arabia pay online by mada, Visa, Mastercard and Apple Pay on Moyasar's secure page. Payments are charged in Saudi riyals (SAR); if your store sells in another currency, the order total is converted to SAR at checkout. The order is marked paid as soon as Moyasar confirms the payment.

## Steps

1. In Moyasar: sign up on dashboard.moyasar.com. Open **Settings > API Keys** and copy the secret key: `sk_test_…` for test mode, `sk_live_…` once Moyasar activates your account.
2. In Dropify, go to **Apps → Discover**, open **Moyasar** and click **Install and connect**.
3. On the app page, click **Connect Moyasar** (or **Add account**), give the account a name, paste the **Secret key** and click **Add account**. We test the key with Moyasar before saving.
4. Optional: copy the address shown under **Webhook URL** (**Copy webhook URL**). In Moyasar, open **Settings > Webhooks**, add this URL with a secret token, then edit your account in Dropify and paste the same token in **Webhook secret**. This keeps refunds and failed payments in sync.
5. In the app's **Settings**, choose the **Payment Mode**: **Sandbox Mode** with test keys, **Live Mode** with live keys.
6. Go to **Store settings → Payment methods** and switch **Moyasar** on. Moyasar is a local card provider: if another local card provider is on, Dropify asks you to **Replace** it. Optionally set a **Discount for prepaid orders**.
7. Place a test order from your store and pay with a Moyasar test card.

## Common problems

- "Moyasar rejected these keys in live mode…" → the key does not match the mode. Use `sk_live_` in Live Mode and `sk_test_` in Sandbox Mode, or switch the mode.
- "This is a Moyasar test key, but the app is in live mode" → paste your live key, or switch the app to Sandbox Mode.
- Customers see "This payment method is temporarily unavailable" → your saved key no longer works (revoked or regenerated). Edit the account, paste the new key and click **Test keys**.
- Moyasar doesn't appear at checkout → check that the app is installed, the account status is **Active**, and Moyasar is switched on in **Payment methods**.

## Related
- [How do I connect Paymob to my store?](https://help.dropify.shop/en/payments_gateways/paymob/)
