Answer

To run a test transaction with card v6, use your payment provider's sandbox environment. Set the API version to v6. Submit the test card number 4000 0000 0000 0006 with any future expiration date and a 3-digit CVC. Check the response code to confirm the transaction result. This process does not move real money.

test transaction card v2

Prerequisites

  • A sandbox account with your payment provider.
  • API credentials for the sandbox.
  • The card v6 test number from your provider's documentation.
  • A tool to send HTTP requests, such as curl or Postman.

Procedure

  1. Log in to your payment provider's developer dashboard.
  2. Switch to the sandbox or test mode.
  3. Locate the API version setting and select v6.
  4. Find the test card numbers for version 6. The common card number is 4000 0000 0000 0006.
  5. Create a payment request with the card number, a future expiry date, and a CVC.
  6. Send the request to the sandbox endpoint.
  7. Read the response. A code of 00 or approved means success. Other codes indicate declines.
  8. Repeat with other test cards to simulate different decline reasons.

Verifying Results

Check the transaction status in the dashboard. Match the response code to the expected outcome. For 3DS tests, use the card v6 3DS test number if provided. Confirm that the payment captures or voids as intended.

Test Transaction Card v9: Sandbox Test Card Guide

Common Issues

  • Using a live API key in the sandbox causes errors.
  • An expired test card returns a decline.
  • Missing CVC leads to a validation failure.
  • Wrong API version sends requests to a legacy endpoint.