Skip to Content
Merchant GuideConnecting a Payment Method

Connecting a Payment Method

Go to Payment Methods → Connect a payment method and choose one:

Screenshot needed: VectaPay dashboard → Payment Methods → “Connect a payment method” dialog, showing the three provider options (M-Pesa, Airtel Money, Cards & Bank) with their fee summaries.

M-Pesa (your own Paybill or Till)

Use this if you already have a Safaricom Paybill or Till number and Daraja API credentials. You’ll enter your shortcode and passkey — VectaPay never asks for your Safaricom account password. This connects a live account: payments through it move real money from the moment it is active.

Airtel Money

Use this if you have an Airtel Money merchant number. Connected the same way as M-Pesa, and also live from the moment it is active. Airtel has no test mode — see Airtel Money.

Cards, bank transfer, and M-Pesa without a Paybill

Don’t have a Paybill or Till yet — or want to accept cards and bank transfers too? Connect through Paystack instead. You don’t need your own Safaricom credentials; Paystack processes M-Pesa payments on your behalf. This option carries Paystack’s own transaction fee in addition to VectaPay’s — check the fee summary shown before you connect.

Paystack is also the one provider where you can connect test keys (sk_test_…) to try things without moving money. The wizard spots the prefix and stores the account as a test account; it is labelled Test keys in Payment Methods and can never take real money. Replace it with your live keys when you’re ready — unless a payment link still uses that account, in which case remove the account from the link first so its customers are never switched to the other mode.

Which one should I pick?

If you…Pick
Already have a Paybill/Till and Daraja credentialsM-Pesa
Already have an Airtel Money merchant numberAirtel Money
Don’t have any of the above, or want cards tooCards & Bank (Paystack)

You can connect more than one — a payment request picks your default method unless you specify otherwise.

Try it before you go live

You don’t need a second “test” M-Pesa account to try your integration. Test payments run on VectaPay’s own M-Pesa test line:

  1. Open Developer → Testing and verify the Safaricom phone you’ll test with — send a KES 10 smoke-test prompt to that handset.
  2. Create a Test API key under Developer → API Keys.
  3. Send a test prompt from your app to that same phone number. It arrives as a real M-Pesa prompt; entering your PIN completes it on Safaricom’s sandbox.

Test payments can only ever reach your verified phone, are rate-limited, and are never billed. See Testing for the whole flow.

Seeing your test payments

Your everyday screens — Payments, Analytics, Money in — show real payments by default. To see test payments, turn on Sandbox view in Settings → Account (Developer mode required). A banner appears at the top of every page reminding you it’s on, and your real payments stay hidden until you turn it back off — so the two never get mixed up. This only changes what you see on this device; it doesn’t affect what anyone else on your team sees.

Which account handles a payment

A payment request uses your default payment method unless you name another one. You can change the default from Payment Methods, and an API caller can target a specific account with providerAccountId. Test requests always run on the test line, so they can’t target another account.

You can connect more than one account, and mix providers freely. A payment always keeps the account that handled it, so switching the default later never rewrites history.

Last updated on