Test Data
  • 12 Mar 2024
  • 7 Minutes to read
  • Dark
    Light

Test Data

  • Dark
    Light

Article summary

When setting up Blackthorn Payments, we suggest you connect your Payment Gateway in Test Mode so that you can create test Transactions, Payment Methods, and Customers.

In order to create successful test records in Salesforce, you must use the card and ACH numbers below and process through a Test Mode connected Payment Gateway.

Stripe

Test a Stripe Card

Warning
Actual card and bank account information cannot be used in Test Mode.
  1. Confirm that the Payment Gateway has Test Mode set to "TRUE".PGTest_Stripe_Test
  2. Go to the Payment Method tab and click New.
  3. Select "Card" and click Next.PGTest_Stripe_CardNext
  4. Using the information provided below, complete the following fields.
    • Holder's Name = use any name
    • Number = “4242424242424242”
    • Expiration Month = use any month
    • Expiration Year = use any year
    • CVV = use any 3-digit number
    • Postal Code = use any 5-digit number
    • Payment Gateway = the Payment Gateway you just set up
  5. Click Save.

This Payment Method is now valid and can be used to capture and refund Transactions.

NOTE: Additional card numbers can be found in Stripe's testing documentation.

Test a Stripe ACH Bank Account

Warning
Real card and bank account information cannot be used in Test Mode.
  1. Confirm that the Payment Gateway has Test Mode set to “TRUE”.PGTest_Stripe_Test
  2. Go to the Payment Method tab and click New.
  3. Select "ACH" and click Next.PGTest_Stripe_ACHNext(1)
  4. Use the data below to test either a successful or failed payment. 
    • Successful Payment Method 
      • Holder’s Name = Use any name 
      • Account Number = “000123456789” 
      • Routing Number = “110000000” 
      • Account Holder Type = Choose either option 
      • Currency ISO = “USD” 
      • Country ISO = “US”
    • Failed Payment Method
      • Holder’s Name = Use any name 
      • Account Number = 000111111116
      • Routing Number = 110000000
      • Account Holder Type = Choose either option
      • Currency ISO = “USD” 
      • Country ISO = “US”
  5. Click Save.

This Payment Method is now valid and can be used to capture and refund Transactions.

PGTest_Stripe_ValidPM

Test for Specific Responses and Errors

Use the test cards below to create a Payment Method that produces a specific response.

Incorrect CVC Code Error

Use this number to create an error about an incorrect CVV. The error message will be in the Stripe data fields.

  • Number = 4000000000000127

Fail to Capture

This number will create a valid Payment Method, but when you capture a Transaction with the Payment Method, the Transaction will fail. The error message will be in the Stripe data fields.

  • Number = 4000000000000341

Additional testing for specific responses and errors can be found here.

Disputes

Use the card below in test mode to simulate a disputed Transaction. This number will create a valid Payment Method, but when you capture a Transaction with the Payment Method, a Dispute record will be created.

  • Number = "4000000000000259"

Test a Winning a Dispute

Enter the words "winning_evidence" in the Additional Information field on the Dispute Evidence record to simulate the dispute being won and the funds being returned to your account as an adjustment Transaction.

Test a Losing a Dispute

Enter the words "losing_evidence" in the Additional Information field on the Dispute Evidence record to simulate the dispute being closed and marked as lost. (Your account will not be credited.)

Click here for more information about Disputes.

Delete Test Data

  1. Navigate to your Stripe Dashboard.
  2. Toggle "ON" the View test data switch. (left-hand column).
  3. Click Business settings. (left-hand column)
  4. Select "Data".
  5. Next to Test data, click Delete all test data.
  6. Click Delete Now.
    G_06 delete test data

Salesforce

Whether you are in a Production or Sandbox Org, you will need to temporarily deactivate all triggers so that you can delete Transaction, Payment Method, and Payment Gateway Customer records.

  1. Navigate to Custom Settings.
  2. Click Manage next to Blackthorn - Pay Trigger Settings.
  3. Click Edit.
  4. Check the Disable All Triggers checkbox.
  5. Click Save.
  6. Delete all of your test data.
  7. Navigate back to Custom Settings and UNCHECK Disable All Triggers.

Authorize.net

Test your Authorize.net Payment Gateway using either the test Authorize.net card or the test Authorize.net ACH bank account.

Test an Authorize.net Card

Warning
Actual card and bank account information cannot be used in Test Mode.
  1. Confirm that the Payment Gateway has Test Mode set to “TRUE”.TestAuthNet_Card_1
  2. Go to the Payment Method tab and click New.
  3. Select Card and click Next.TestAuthNet_Card_2
  4. Using the information provided below, complete the following fields.
    1. Holder’s Name = use any name
    2. Number = “4111111111111111”
    3. Expiration Month = use any month
    4. Expiration Year = use any year
    5. CVV = use any 3-digit number
    6. Postal Code = use any 5-digit number
    7. Payment Gateway = the Payment Gateway you just set up
  5. Check the Payment Gateway’s Enable Authorize.Net CCV Filter field if you want to require users to re-enter the CVV code for the card they are using.
  6. Click Save.

TestAuthNet_Card_3

This Payment Method is now valid and can be used to capture and refund Transactions.

For more information about testing Authorize.net Payment Gateways, click here.

NOTE: Additional card numbers can be found in Authorize.net's testing documentation.

Test an Authorize.net ACH Bank Account

Warning
Real card and bank account information cannot be used in Test Mode.
  1. Confirm that the Payment Gateway has Test Mode set to “TRUE”.TestAuthNet_ACH_1
  2. Go to the Payment Method tab and click New.
  3. Select ACH and click Next.TestAuthNet_ACH_2
  4. Using the information provided below, complete the following fields.
    1. Holder’s Name = use any name
    2. Account Number = “000123456789”
    3. Routing Number = “122105812”
    4. Account Holder Type = either option
    5. Currency ISO = “USD”
    6. Country ISO = “US”
  5. Click Save.

This Payment Method is now valid and can be used to capture and refund Transactions.

Test for Specific Responses and Errors

Cards

Create a Payment Method using the following postal codes to generate a declined Transaction.

  • Postal Code = "46282" - This Transaction will be declined.
  • Postal Code = "46205" - The Transaction will be declined because of an AVS mismatch. The address provided does not match the cardholder's billing address.

ACH

To generate a decline using an ACH bank account, submit a Transaction over $100.

Duplicate Payment Methods

Create two Payment Methods with the same name and email address to generate "A duplicate record with ID [auth.net id] already exists error" for the second Payment Method.

Spreedly

Test your Payment Gateway using either the test Spreedly card or the test Spreedly ACH bank account.

Test a Spreedly Card

Warning
Real card and bank account information cannot be used in Test Mode.
  1. Confirm that the Payment Gateway has Test Mode set to “TRUE”.TestPGSpreedly_TestMode
  2. Go to the Payment Method tab and click New.
  3. Select Card and click Next.TestPGSpreedly_NewPM
  4. Using the information provided below, complete the following fields.
    • Holder’s Name = use any name
    • Number = “4111111111111111”
    • Expiration Month = use any month
    • Expiration Year = use any year
    • CVV = use any 3-digit number
    • Postal Code = use any 5-digit number
    • Payment Gateway = use the Payment Gateway you just set up
  5. Click Save.TestPGSpreedly_PaymentMethod

This Payment Method is now valid and can be used to capture and refund Transactions.

For more information about testing Spreedly Payment Gateways, click here

Spreedly and ACH Bank Account Limitation

Blackthorn does not support webhook callbacks for gateways that are configured through Spreedly. As a result, Blackthorn does not recommend submitting ACH payments via Spreedly. 

If an ACH payment is submitted via Spreedly, users must check their gateway to see if the payment is complete. Users cannot confirm if the payment was successful by going to Salesforce. 

If you do use ACH payments with Spreedly, please proceed with caution.

Test a Spreedly ACH Bank Account

Warning
Real card and bank account information cannot be used in Test Mode.

  1. Confirm that the Payment Gateway has Test Mode set to “TRUE”.TestPGSpreedly_TestMode
  2. Go to the Payment Method tab and click New.
  3. Select ACH and click Next.TestPGSpreedly_NewPM
  4. Using the information provided below, complete the following fields.
    • Holder’s Name = use any name
    • Account Number = “9876543210”
    • Routing Number = “021000021”
    • Account Holder Type = either option
    • Currency ISO = “USD”
    • Country ISO = “US”
  5. Click Save.

This Payment Method is now valid and can be used to capture and refund Transactions.

For more information about testing Spreedly Payment Gateways, click here.

PayPal

Test a PayPal Card

Limitation

Real card and bank account information cannot be used in Test Mode.

Use the following test card number to create a successful Payment Method and Transaction.

  • Number = "4755007800273033"
  • Expiration Month = "05"
  • Expiration Year = "2022"
  • CVV = "105"

Transact (CashNet)

For testing purposes, create a Transact (Cashnet) Payment Gateway and use the following values.

Use the Transact (Cashnet) Payment Gateway with any Event and perform a normal (paid) checkout. You should be able to successfully complete the checkout process and perform failing checkouts that should be handled appropriately.

Use the following test card numbers:

Card TypeNumberCVV
Visa4111111111111111125
Mastercard5454545454545454125
American Express3434343434343431250

TouchNet

For testing purposes, create a TouchNet Payment Gateway and use the following values:

FieldValue
TouchNet UPay Site ID242
TouchNet UPay Site URLhttps://test.secure.touchnet.net:8443/C30002test_upay/web/index.jsp
TouchNet uPay Form ParametersDEPARTMENT=any

Use the TouchNet Payment Gateway with any Event and perform a normal (paid) checkout. You should be able to successfully complete a checkout as well as perform failing checkouts that should be handled appropriately.

Use the following test card numbers:

BrandNumberCVC/CVVExpiration Date
Visa4111111111111111125Any future date
American Express3434343434343431250Any future date
Discover6011111111111117125Any future date
Mastercard5121212121212124125Any future date

What's Next