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

# Test Cards

> Everything you need to know about test cards

# Test Cards

Everything you need to know about test cards

## Cards for testing

Here there are some testing cards.

| Card           | Number              | CVC  | Due Date |
| -------------- | ------------------- | ---- | -------- |
| **Mastercard** | 5031 4332 1546 6351 | 123  | 11/25    |
| **Visa**       | 4235 6471 2692 5682 | 123  | 11/25    |
| **Amex**       | 3753 651551 54995   | 1234 | 11/25    |

## Documents for Scenarios

The result of the payment of the charge is linked to the document, so it is important that when creating the charge the document is informed according to the expected result.

| Document        | Status    | Reason                                                                                                                 |
| --------------- | --------- | ---------------------------------------------------------------------------------------------------------------------- |
| **34960826312** | confirmed | Approved payment.                                                                                                      |
| **45131731265** | rejected  | Renew the card expiration date.                                                                                        |
| **70814577358** | rejected  | Review the data on the card.                                                                                           |
| **38532397400** | rejected  | Review the card security code.                                                                                         |
| **10322493562** | rejected  | Card disabled/ blocked.                                                                                                |
| **58125837746** | rejected  | You have already made a payment with this amount. If you need to pay again, use another card or other form of payment. |
| **27943315625** | rejected  | Insufficient balance (money) not this transaction.                                                                     |
| **87782371525** | rejected  | The card issuing bank declined payment. Please use another card or contact your bank.                                  |

## Retry

In cases of status **Rejected** it is possible after the generation of the error, try to pay the charge again, but this made in order to approve the payment, re-approve a rejected payment, on mercadopago simply use a Pix card Visa.

### Example:

| Card     | Number              | CVC | Due Date |
| -------- | ------------------- | --- | -------- |
| **Visa** | 4235 6471 2692 5682 | 123 | 11/25    |

## Refund

Charges that have been confirmed may be chargeback, the chargeback status is listed in the **Reason** entered in the chargeback request.

| Reason     | Scenario         |
| ---------- | ---------------- |
| **APRO**   | Approved refund  |
| **REJECT** | rejected refund  |
| **CANCEL** | cancelled refund |

Any other **Reason** informed from the mapped scenarios returns default error **fallback**.

## Testing Flow

<Steps>
  <Step title="Create a charge">
    Use the [Create Charge](/api-reference/credit-card/create-charge) endpoint with one of the test cards above
  </Step>

  <Step title="Use test document">
    Select a document from the scenarios table to test different payment outcomes
  </Step>

  <Step title="Process payment">
    Complete the checkout process using the test card and document
  </Step>

  <Step title="Verify status">
    Check the payment status based on the document used
  </Step>

  <Step title="Test retry (optional)">
    For rejected payments, retry with the Visa test card to approve
  </Step>

  <Step title="Test refund (optional)">
    For confirmed payments, test the refund flow with different reasons
  </Step>
</Steps>

## Best Practices

<Note>
  **Sandbox Environment**: Always use test cards in the sandbox environment. Never use real card numbers for testing.
</Note>

<Warning>
  **Document Matching**: The payment result is directly linked to the document (CPF/CNPJ) used. Make sure to use the correct document for the scenario you want to test.
</Warning>

<Tip>
  **Complete Testing**: Test all scenarios including approved, rejected, retry, and refund flows to ensure your integration handles all cases properly.
</Tip>

## Common Test Scenarios

<AccordionGroup>
  <Accordion title="Successful Payment">
    **Document**: 34960826312

    **Expected Result**: Payment confirmed and approved

    Use this scenario to test the happy path of your integration.
  </Accordion>

  <Accordion title="Expired Card">
    **Document**: 45131731265

    **Expected Result**: Payment rejected - "Renew the card expiration date"

    Test how your application handles expired card errors.
  </Accordion>

  <Accordion title="Insufficient Funds">
    **Document**: 27943315625

    **Expected Result**: Payment rejected - "Insufficient balance"

    Test how your application handles insufficient funds scenarios.
  </Accordion>

  <Accordion title="Duplicate Payment">
    **Document**: 58125837746

    **Expected Result**: Payment rejected - "You have already made a payment with this amount"

    Test duplicate payment detection.
  </Accordion>

  <Accordion title="Bank Declined">
    **Document**: 87782371525

    **Expected Result**: Payment rejected - "The card issuing bank declined payment"

    Test how your application handles bank-side rejections.
  </Accordion>
</AccordionGroup>

## Refund Testing

To test refunds, first create a successful payment using document **34960826312**, then request a refund with one of the following reasons:

<CardGroup cols={3}>
  <Card title="APRO" icon="check">
    **Approved refund**

    Refund will be processed successfully
  </Card>

  <Card title="REJECT" icon="xmark">
    **Rejected refund**

    Refund will be rejected
  </Card>

  <Card title="CANCEL" icon="ban">
    **Cancelled refund**

    Refund will be cancelled
  </Card>
</CardGroup>

## Related Resources

<CardGroup cols={2}>
  <Card title="Create Charge" icon="plus" href="/api-reference/credit-card/create-charge">
    Create a new credit card charge
  </Card>

  <Card title="Rejection Status" icon="circle-xmark" href="/credit-card/rejection-status">
    Understanding rejection reasons
  </Card>

  <Card title="Transparent Checkout" icon="code" href="/credit-card/transparent-checkout">
    Learn about transparent checkout
  </Card>

  <Card title="About Credit Card" icon="circle-info" href="/credit-card/about-credit-card">
    Learn about credit card charges
  </Card>
</CardGroup>
