Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ecrypt.com/llms.txt

Use this file to discover all available pages before exploring further.

Testing your implementation will ensure your integration will successfully run transactions for common payment flows and prepare you for certification before going live. Failure to run these basic test cases will result in your integration potentially not working correctly and creating issues down the road.

Basic Test Cases

  • Authorization
  • Authorization, capture
  • Authorization, partial capture
  • Sale
  • Refund
  • Credit
  • Void

Test Cards (U.S.)

Card TypeValue
Visa4111111111111111
MasterCard5431111111111111
Discover6011000991300009
American Express341111111111111

Test Cards (Canada)

Card TypeValue
Visa4242424242424242
MasterCard5454545454545454
Discover6011000992927602
American Express373599005095005

Guidelines for Testing U.S. Credit Cards

  • Credit card expiration dates should be any month and year in the future.
  • To cause a declined message, pass an amount less than 1.00.
  • To trigger a fatal error message, pass an invalid card number.
  • To simulate an AVS match, pass 888 in the address1 field and 77777 for zip.
  • To simulate a CVV match, pass 999 in the cvv field.

Guidelines for Testing Canadian Credit Cards

  • Credit card expiration dates should be any month and year in the future.
  • Transactions in the test environment must not exceed $11.00.
  • To cause a declined message, pass a transaction amount of $0.05.
  • To trigger a fatal error message, pass an invalid card number.

Test ACH (U.S. Only)

Account DataValue
ACH Direct Deposit Account123123123
ACH Routing Number123123123

Triggering Errors in Test Mode for ACH

  • To cause a declined message, pass an amount less than 1.00.
  • To trigger a fatal error message, pass an invalid card number.

Test Credit Card Terminal Transactions

There are two methods of testing terminal transactions: using a physical terminal and using the Virtual Payment Terminal (VPT).

Physical Terminal

You can initiate a terminal transaction with ECRYPT’s POS modal. Your device must be registered to your ECRYPT account before initiating a sale. Follow the steps below to run your first test transaction:
  1. Navigate to the quick action button on the top left of the ECRYPT dashboard.
  2. Select +POS.
  3. Select Sale for transaction type and complete the rest of the form fields.
  4. Click Send to Terminal.
  5. Your terminal device will display a request for the transaction and sale amount. Complete the transaction by following the steps on the device.
  6. Once the transaction is complete, navigate to Open Transactions in the ECRYPT dashboard — your transaction will appear at the top of the table.

Virtual Payment Terminal (VPT)

VPT is a fully functioning virtual payment terminal designed to expedite integration times and remove the requirement for “beta” payment terminals. VPT registration and transaction processing simulates physical payment terminal interactions for auditing, reporting, and testing.
Note: VPT is currently limited to VISA EMV. VPT does not support handling “prompts” at this time, though sending the variables in your request will not cause errors. Visit the terminal reference page to access the API endpoint for creating terminals.

Test Data

Registration requests can be submitted using the following information:
  • Registration Code: T00001 — Successful
  • Registration Code: T00002 — Failed
  • Amount: 1.00 (amounts under 1.00 generate a failure)

Triggering Errors in Test Mode

  • To cause a declined response, pass an amount less than 1.00.
  • To trigger a fatal error message in processing, pass an invalid Payment Terminal ID.