# Test payments

> Test cards, bank accounts and mobile money numbers for simulating Paystack payments in test mode.

Use these details with your [test keys](/developer-tools/integration/api-keys) to simulate payments and their outcomes. No real money moves. Test details only work in test mode: a live transaction made with them fails.

## Cards

Use any future expiry date.

<table>
<thead>
  <tr>
    <th>
      Scenario
    </th>
    
    <th>
      Card number
    </th>
    
    <th>
      Extra details
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Successful, no validation (reusable)
    </td>
    
    <td>
      <code>
        4084 0840 8408 4081
      </code>
    </td>
    
    <td>
      CVV <code>
        408
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Successful, PIN validation
    </td>
    
    <td>
      <code>
        5078 5078 5078 5078 12
      </code>
    </td>
    
    <td>
      CVV <code>
        081
      </code>
      
      , PIN <code>
        1111
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Successful, PIN and OTP validation
    </td>
    
    <td>
      <code>
        5060 6666 6666 6666 666
      </code>
    </td>
    
    <td>
      CVV <code>
        123
      </code>
      
      , PIN <code>
        1234
      </code>
      
      , OTP <code>
        123456
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Successful, PIN, phone and OTP validation
    </td>
    
    <td>
      <code>
        5078 5078 5078 5078 04
      </code>
    </td>
    
    <td>
      CVV <code>
        884
      </code>
      
      , PIN <code>
        0000
      </code>
      
      , OTP <code>
        123456
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Successful, bank authentication simulation (reusable)
    </td>
    
    <td>
      <code>
        5192 6027 2058 4796
      </code>
    </td>
    
    <td>
      CVV <code>
        123
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Declined
    </td>
    
    <td>
      <code>
        4084 0800 0000 5408
      </code>
    </td>
    
    <td>
      CVV <code>
        001
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Token not generated
    </td>
    
    <td>
      <code>
        5078 5078 5078 5078 53
      </code>
    </td>
    
    <td>
      CVV <code>
        082
      </code>
      
      , PIN <code>
        0000
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Insufficient funds
    </td>
    
    <td>
      <code>
        4084 0800 0067 0037
      </code>
    </td>
    
    <td>
      CVV <code>
        787
      </code>
    </td>
  </tr>
</tbody>
</table>

### Refund scenarios

Payments with these cards succeed. The card you use sets the outcome of a refund on the transaction.

<table>
<thead>
  <tr>
    <th>
      Refund outcome
    </th>
    
    <th>
      Card number
    </th>
    
    <th>
      Extra details
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Failed
    </td>
    
    <td>
      <code>
        4084 0800 0067 1803
      </code>
    </td>
    
    <td>
      CVV <code>
        180
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Needs attention
    </td>
    
    <td>
      <code>
        4084 0800 0067 1902
      </code>
    </td>
    
    <td>
      CVV <code>
        190
      </code>
    </td>
  </tr>
</tbody>
</table>

## Local payment channels

These test details are for the payment channels available in your market.

<localized-block regions="ng">

**Bank accounts**

<table>
<thead>
  <tr>
    <th>
      Use
    </th>
    
    <th>
      Bank
    </th>
    
    <th>
      Details
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Pay with a bank account
    </td>
    
    <td>
      Zenith Bank
    </td>
    
    <td>
      Account number <code>
        000 000 000 0
      </code>
      
      , birthday <code>
        001
      </code>
      
      , OTP <code>
        123456
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Create a transfer recipient
    </td>
    
    <td>
      Zenith Bank
    </td>
    
    <td>
      Account number <code>
        100 000 000 1
      </code>
      
      , bank code <code>
        057
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Pay with Kuda
    </td>
    
    <td>
      Kuda Bank
    </td>
    
    <td>
      Phone number <code>
        +234 810 000 000 0
      </code>
      
      , token <code>
        123456
      </code>
      
      , bank code <code>
        50211
      </code>
    </td>
  </tr>
</tbody>
</table>

In test mode, you can also use a regular bank account to create a transfer recipient.

**Dedicated virtual accounts**

To create a test [dedicated virtual account](/payments/channels/dedicated-virtual-accounts), set `preferred_bank` to `test-bank` and use your test secret key.

To pay into a test dedicated virtual account, make a transfer from the [demo bank app](https://demobank.paystackintegrations.com/) with this account:

<table>
<thead>
  <tr>
    <th>
      Bank
    </th>
    
    <th>
      Account number
    </th>
    
    <th>
      PIN
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Demo Bank
    </td>
    
    <td>
      <code>
        123 000 164 4
      </code>
    </td>
    
    <td>
      <code>
        0000
      </code>
    </td>
  </tr>
</tbody>
</table>
</localized-block>

<localized-block regions="gh">

**Mobile money**

<table>
<thead>
  <tr>
    <th>
      Network
    </th>
    
    <th>
      Phone number
    </th>
    
    <th>
      Extra details
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      MTN
    </td>
    
    <td>
      <code>
        055 123 498 7
      </code>
    </td>
    
    <td>
      No PIN or OTP
    </td>
  </tr>
</tbody>
</table>
</localized-block>

<localized-block regions="ke">

**M-PESA**

<table>
<thead>
  <tr>
    <th>
      Network
    </th>
    
    <th>
      Phone number
    </th>
    
    <th>
      Extra details
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      M-PESA
    </td>
    
    <td>
      <code>
        +254 710 000 000
      </code>
    </td>
    
    <td>
      No PIN or OTP
    </td>
  </tr>
</tbody>
</table>
</localized-block>

<localized-block regions="za">

**EFT**

Payments from these accounts always succeed. The account you use sets the outcome of a refund on the transaction.

<table>
<thead>
  <tr>
    <th>
      Refund outcome
    </th>
    
    <th>
      Account number
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Failed
    </td>
    
    <td>
      <code>
        101 220 493 6
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Needs attention
    </td>
    
    <td>
      <code>
        101 220 493 5
      </code>
    </td>
  </tr>
</tbody>
</table>
</localized-block>

## Before you go live

- Replace your test keys with your live keys on every server and client. Keep both pairs in environment variables so the switch is a configuration change.
- Set your live webhook URL on the [API configuration](https://dashboard.paystack.com/v2/developers/api-configuration) page. Test and live mode have separate webhook URLs, so a URL you set while testing doesn't receive live events.
- Make your first live payment with a real payment method. Test cards, accounts and phone numbers don't work in live mode.
