LogoLogo
System Status
  • Digital River API
  • Getting started
  • Using our services
    • Local pricing
    • Item classification
    • Subscriptions
    • e-Invoicing
  • Integration options
    • Low-code checkouts
      • Implementing a Prebuilt Checkout
      • Implementing a Components checkout
      • Offering local pricing
      • Using a shipping endpoint
      • Processing subscription acquisitions
      • Adding custom fields
      • Offering store credit
      • Displaying policies and getting consent
      • Collecting e-invoice information
      • Handling completed checkout-sessions
    • Direct integrations
      • Standard flow
      • Building checkouts
        • Checking out guest and registered customers
        • Describing line items
          • Setting the price of an item
          • Managing items with shared SKU identifiers
        • Providing address information
        • Handling shipping choice
        • Tax identifiers
        • Applying a discount
        • Setting the customer type
        • Providing the IP address
        • Selecting a currency
        • Initiating a charge
        • Setting the purchase location
        • Configuring taxes
        • Accessing regulatory fee information
        • Localizing invoices and credit memos
        • Providing an upstream identifier
        • Applying store credit
        • Handling e-invoicing requirements
        • Landed cost
        • Tax calculation inputs
        • Selling entities
        • Payment sessions
        • Applying store credit (legacy)
        • Country specs
      • Building payment workflows
        • Handling redirect payment methods
        • Handling delayed payment methods
      • Subscription acquisitions
        • Handling subscription acquisitions
        • Handling external subscription acquisitions
        • Subscription information
      • Digital River coordinated fulfillments
        • Checking inventory levels
        • Using shipping quotes
        • Reserving inventory items
        • Managing a fulfillment order
        • Cancelling a fulfillment order
    • Connectors
  • Order management
    • Processing orders
    • Handling a rejected order
    • Accessing invoices and credit memos
    • Fulfilling goods and services
    • Capturing and cancelling charges
    • Payment reauthorizations
    • Handling reversals
      • Return basics
        • Digital River coordinated returns
        • Third party coordinated returns
      • Refund basics
        • Issuing refunds
        • Refunding asynchronous payment methods
      • Disputes and chargebacks
    • Customer notifications
    • Responding to events
      • Events
        • Key event types
        • All event types
      • Webhooks
        • Creating a webhook
        • Digital River API safelist
        • Digital River signature
      • Expanding events
      • Preventing webhooks from getting disabled
    • Distributor model
  • Subscription Management
    • Managing a subscription
    • Managing an external subscription
  • Payments
    • Payment solutions
      • Drop-in payments
        • How Drop-in payments work
        • Drop-in payments integration guide
      • DigitalRiver.js with Elements
        • Elements integration guide
        • Configuring payment methods
          • Configuring Afterpay
          • Configuring Alipay+ (cross-border)
          • Configuring Alipay (domestic)
          • Configuring Amazon Pay
          • Configuring Apple Pay
          • Configuring Bancontact
          • Configuring BNP Paribas
          • Configuring BLIK
          • Configuring CCAvenue
          • Configuring Clearpay
          • Configuring Credit Cards
          • Configuring FPX Online Banking
          • Configuring Google Pay
          • Configuring iDEAL
          • Configuring Klarna
          • Configuring Konbini
          • Configuring Online Banking (IBP)
          • Configuring Online Banking (Korea Bank Transfer)
          • Configuring PayCo
          • Configuring PayPal
          • Configuring SEPA Direct Debit
          • Configuring Trustly
          • Configuring Wire Transfer
          • Common payment sources
          • Common payment objects
    • Supported payment methods
      • Afterpay
      • Alipay (domestic)
      • Alipay+ (cross-border)
      • Amazon Pay
      • Apple Pay
      • Bancontact
      • BNP Paribas
      • BLIK
      • CCAvenue
      • Clearpay
      • Credit Cards
      • FPX Online Banking
      • Google Pay
      • iDEAL
      • Klarna
      • Konbini
      • Korea Bank Transfer (Online Banking)
      • Online Banking (IBP)
      • Pay with Installments France
      • PayCo
      • PayPal
      • PayPal Billing Agreement
      • PayPal Credit
      • PayPal Pay in 3
      • PayPal Pay in 4
      • PayPal RatenZahlung (Installment Payment)
      • SEPA Direct Debit
      • Trustly
      • Wire Transfer
    • Source basics
      • Managing sources
      • Handling credit card sources
      • Retrieving sources
    • Authorization declines
    • PSD2 and SCA
      • How to ensure SCA compliance
    • Payment testing scenarios
  • Product management
    • Product basics
    • Managing SKUs
    • Using product details
    • Grouping SKUs
    • SKU-inventory item pairs
    • Managing inventory items
    • Regulatory fees
      • What are regulatory fees?
        • Fees terminology
        • Regulatory fee management
        • European regulatory fees
        • Compliance obligations
        • WEEE directive requirements
        • Copyright directive requirements
        • Compliance challenges
      • Managing regulatory fees
  • Customer management
    • Customer basics
    • Creating and updating customers
    • Setting up tax exemptions
    • Recording a customer's request to be forgotten
  • Financial reporting
    • Financials basics
    • Sales transactions
      • Returning a list of sales transactions
      • Getting a sales transaction by ID
    • Sales summaries
      • Returning a list of sales summaries
      • Getting a sales summary by ID
    • Payouts
      • Returning a list of payouts
      • Getting a payout by ID
      • Get a list of transactions included in payout by ID
  • Developer resources
    • Digital River API reference
    • DigitalRiver.js reference
      • Including DigitalRiver.js
      • Initializing DigitalRiver.js
      • DigitalRiver object
      • Elements
        • Amazon Pay element
        • Apple Pay elements
        • Google Pay elements
        • IBAN element
        • iDEAL element
        • Konbini elements
        • Compliance element
        • Offline Refund elements
        • Online Banking elements
        • Tax Identifier element
        • Invoice attribute element
        • Delayed Payment Instructions element
        • PayPal elements
      • Guidelines for capturing payment details
      • Security
      • Digital River payment objects
      • Error types, codes, and objects
    • DigitalRiverCheckout.js reference
      • Including DigitalRiverCheckout.js
      • Initializing DigitalRiverCheckout.js
        • DigitalRiverCheckout configuration object
      • DigitalRiverCheckout object
        • Configuring Prebuilt Checkout
          • Performing actions
          • Defining experience
        • Components
          • Configuring components
          • Address component
          • Shipping component
          • Tax identifier component
          • Invoice component
          • Wallet component
          • Payment component
          • Compliance component
          • Order summary component
          • Thank you component
        • Rendering a checkout button
          • Performing actions on the checkout button
        • Determining the checkout's status
      • Accessing country and currency
    • DynamicPricing.js reference
    • Postman collection
  • administration
    • Sign in
    • Digital River Dashboard
      • Digital River Dashboard quick start guide
      • Key features
      • Reset your password
      • Test and production environments
      • Account
        • Adding an account
        • Switching accounts
        • Account access
      • Profile settings
        • Viewing your personal information
        • Changing your password
        • Updating your phone number
        • Enabling multi-factor authentication
      • Finance
        • Payouts
          • Viewing your payout details
          • Filtering your payouts
          • Exporting your payouts
        • Sales summaries
          • Viewing your sales summaries details
          • Filtering your sales summaries
          • Exporting your sales summaries
          • Exporting your sales summary details
        • Transactions
          • Viewing your transaction details
          • Filtering your transactions
          • Exporting your transactions
      • Order management
        • Orders
          • Searching for orders
          • Filtering your orders
          • Viewing the order details
          • Cancelling items
          • Fulfilling items
          • Downloading an invoice
          • Downloading a credit memo
          • Creating shipping labels
          • Recording a customer's request to be forgotten
          • Viewing returns and refunds
          • Creating a return
          • Accepting a return
          • Creating a refund
          • Viewing the order's timeline
        • Checkouts
          • Searching for checkouts
          • Filtering your checkouts
          • Viewing the checkout details
        • Prebuilt Checkout links
          • Generate Prebuilt Checkout links
          • View and work with Prebuilt Checkout link details
          • Add a customer during Prebuilt Checkout
          • Add a product during Prebuilt Checkout
      • Customers
        • Viewing customer details
        • Searching for customers
        • Filtering your customers
        • Editing account information
        • Adding a customer
        • Tax IDs and certificates
          • Adding a tax certificate
          • Adding a tax ID
          • Deleting a tax ID
        • Metadata
          • Adding metadata
          • Editing metadata
        • Manage subscriptions from the Customer Details page
        • Disabling a customer
        • Recording a customer's request to be forgotten
        • Deleting a customer
      • Catalog
        • SKUs
          • Viewing the SKU details
          • Searching for SKUs
          • Filtering your SKUs
          • Adding a SKU
          • Editing a SKU
          • Deleting a SKU
          • Adding a fee to a SKU
          • Editing a fee
          • Deleting a fee
          • Viewing product tariff codes
        • Managing customer subscriptions from Digital River Dashboard
      • Developers
        • API keys
          • Updating your API version
          • Getting your API keys
          • Changing the API version for your key
          • Creating a restricted key
          • Editing a restricted key
          • Deleting a restricted key
          • Rotating keys
        • Webhooks
          • Creating a webhook
          • Editing a webhook
          • Deleting a webhook
          • Rotating a webhook's secret
        • API logs
          • Filtering the API log
          • Viewing the API log details
        • Event logs
          • Filtering the events log
          • Viewing the event details
      • Settings
        • Users and roles
          • Roles
          • Searching for a user by name or email
          • Filtering your users and roles
          • Adding a user
          • Editing a user
          • Deleting a user
        • Prebuilt Checkout
        • Payment methods
          • Viewing your payment methods
          • Viewing payment method details
            • Enabling currencies
            • Managing countries
          • Enabling or disabling a payment method
  • General Resources
    • eCompass
    • eCompass documentation
    • Release notes
      • 2024
      • 2023
      • 2022
      • 2021
      • 2020
      • 2019
    • Standards and certifications
      • Certification process
      • Compliance requirements
      • Documentation requirements
      • Integration checklists
        • Admin portal
        • Products and SKUs
        • Customers and tax exemptions
        • Checkouts, payment sources, and orders
        • Disclosures, compliance statements, and emails
        • Fulfillments and cancellations
        • Customer portal
        • Order refund synchronization
        • Reversals
        • Error handling
      • Test and use cases
    • Commerce infrastructure
    • Versioning
    • Glossary
Powered by GitBook
On this page
  • Getting started
  • Payment methods supported in the test environment
  • Testing standard payment methods
  • Credit cards
  • Google Pay testing
  • Testing redirect payment methods
  • Success scenarios
  • Error scenarios
  • Testing receiver payment methods
  • Success scenarios
  • Error scenarios
  • Testing the CCAvenue payment method
  • Success and error scenarios
  • Production testing best practices
  1. Payments

Payment testing scenarios

Gain a better understanding of how to test your payments integration

PreviousHow to ensure SCA complianceNextProduct basics

Last updated 2 months ago

To confirm that the payment methods in your integration work as expected, you can simulate transactions without transferring any money.

On this page you'll find information on:

  • How to test , , and payment methods

For details on evaluating VAT implementations, refer to the section on the page.

Getting started

Always use your to evaluate your integration. This prevents direct interactions with payment services and ensures that input data doesn't result in the creation of an actual or the transfer of funds.

When testing in the Digital River APIs, use your and to create in and .

How you test a payment method depends on whether its resulting has an of , , or . If you don't know this, you can find it on the page.

Payment methods supported in the test environment

Digital River supports a wide range of payment methods. However, not all of them are currently supported in our . To determine the test environment status of each, refer to .

Testing standard payment methods

Credit cards

Success scenarios

To test a successful payment, use the following credit card numbers. Each expiration date must be at least one day. Except for Visa and American Express, the security code can be any random three-digit number.

Card number
Brand
Expiration date
Security code

3434 567890 12341

American Express

Any future date

Any four digits

3034 567890 1235

Diners Club

Any future date

Any three digits

6011 9876 9876 9876

Discover

Any future date

Any three digits

3528 9876 9876 9879

JCB

Any future date

Any three digits

5466 1600 0000 0008

Mastercard

Any future date

Any three digits

6226 2200 0000 0009

UnionPay

Any future date

Any three digits

4444 2222 3333 1111

Visa

Any future date

123

Use the following data to test how your integration handles different 3D Secure 2 authentication scenarios.

Card number
Brand
Expiration date
Security code

5454 5454 5454 5454

Mastercard

03/2030

737

4917 6100 0000 0000

Visa

03/2030

737

When prompted for 3D Secure 2 text challenges, use these credentials:

App type
Password

Mobile

1234

Web

password

Error scenarios

Use these card numbers to test specific error scenarios. For each card:

  • The expiration date must be at least one day in the future

  • The security code can be any random three-digit number.

Card Number
Expected result

4000 0000 0000 3295

A Source is not created. The state of the Source is failed.

4000 0000 0000 3600

A Source is successfully created but the Charge fails. The state of the Charge is failed.

4000 0000 0000 4103

Both a Source and Charge are successfully created , but the Capture fails. The Capture state is failed.

4000 0000 0000 4111

A Source, Charge, and Capture are successfully created, but the Refund fails. The Refundstate is failed.

4000 0000 0000 4442

Both a Source and Charge are successfully created , but the Cancel fails. The Cancel state is failed.

4485 9517 8852 1565

Both a Source and Charge are successfully created, but the Capture is created in a pending state. After a delay, the Capture state updates to failed.

4556 6025 6424 0839

A Source, Charge, and Capture are successfully created, but the Refund is created in apending state. After a delay, the Refund state updates to failed.

4024 0071 2057 9635

Both a Source and Charge are successfully created, but the Capture is created in apending state. The Capture state remains pending.

4000 0000 0000 0028

Both a Source and Charge are successfully created, but the Capture is created in apending state. The Capture state remains pending.

Google Pay testing

Before you test Google Pay, you need to:

Scenario
Last name

SourceFail

ChargeFail

CaptureFail

CancelFail

RefundFail

SCATest

SCATestFail

Testing redirect payment methods

Success scenarios

You'll then be directed to our generic authorization page that contains accept and reject options. Follow the redirect and select one of the following options:

Option
Expected result

Approve

The Source moves to a chargeable state

Decline

The Source remains in a pending_redirect state.

Error scenarios

This tab's testing information applies to PayPal, PayPal Billing Agreement, and PayPal Credit.

lastName parameter

Expected result

SourceCreationFail

A Source is not created. The state of the Source is failed.

ChargeCreationFail

A Source is successfully created but the Charge fails. The state of the Charge is failed.

RefundFail

Both a Source and the Charge are successfully created but refunds against the Charge fail. The state of the Refund is failed.

lastName parameter

Expected result

SourceFail

A Source is not created. The state of the Source is failed.

SourceFailAfterRedirect

The Source moves to a state of failed after redirecting from payment page.

ChargeFail

A Source is successfully created but the Charge fails. The state of the Charge is failed.

ChargeFailedAfterPending

The Charge is initially created in a pending state. After a webhook call, the Charge is moved to a failed state.

RefundFail

Both a Source and the Charge are successfully created but refunds against the Charge fail. The state of the Refund is failed.

RefundFailedAfterPending

The Refund is initially created in a pending state. After a webhook call, the Refund is moved to a failed state.

ChargeRemainPending

After a Charge is created, it remains in a state of pending.

lastName parameter

Expected result

SourceCreationFail

A Source is not created. The state of the Source is failed.

ChargeCreationFail

A Source is successfully created but the Charge fails. The state of the Charge is failed.

RefundFail

Both a Source and the Charge are successfully created but refunds against the Charge fail. The state of the Refund is failed.

lastName parameter

Expected result

authFail

A Source is not created. The state of the Source is failed..

authFailAfterRedirect

A Source is successfully created but the Charge fails. The state of the Charge is failed.

refundFail

Both a Source and the Charge are successfully created but refunds against the Charge fail. The state of the Refund is failed.

Testing receiver payment methods

Work with your support team when testing wire transfers. They can provide instructions on how to move your orders into a completed state.

Success scenarios

Error scenarios

Scenario
Description

lastName parameter

Expected result

SourceCreationFail

A Source is not created. The state of the Source is failed.

SourceFailWithDelay

A Source is successfully created but the Charge fails. The state of the Charge is failed.

RefundFailWhileCreation

Both a Source and the Charge are successfully created but refunds against the Charge fail. The state of the Refund is failed.

RefundFailAfterPaymentInfo

Both a Source and the Charge are successfully created and a Refund request against the Charge is successful but ultimately fails to refund.

Testing the CCAvenue payment method

Use the following when testing in the CCAvenue sandbox:

Payment option
Payment information
Notes

Credit Card

4111111111111111 / 123

The expiration date must be at lease one day in the future.

Net Banking

AvenueTest

UPI

select BHIM (first button) / 123456@upi

Wait for the countdown. Unified Payment Interface (UPI) identifier can be any six-digit number and @upi—for example, 123456@upi and 458093@upi. You can use every UPI identifier multiple times per day. However, when testing, you should either (1) clear the cookies or (2) use an incognito window every time after placing the order.

Wallet

AvenueTest

Success and error scenarios

Production testing best practices

Here are some guidelines to follow when testing in production:

  • Keep the volume of transactions and their monetary value to a minimum to avoid heavy impacts on your financial reporting.

  • Pass "real" data (i.e., actual card numbers, names, emails, and addresses).

  • Ensure that your transactions are flowing through the proper fraud system. There's no way for you to configure the JavaScript libraries or APIs to control this flow. So, before doing live testing, notify your Digital River representatives and they'll work with our fraud team to get everything set up correctly.

  • Provide your Digital River representative with any data you'd like positive or negative listed. For example, you can provide email addresses representing "good" customers. We'll then add those emails to a positive list. When orders with those values enter our fraud system, we'll let them pass through without any checks. Alternatively, you might want orders with certain IP addresses to be held for fraud review or rejected outright. If that's the case, you can give us a list of those addresses, and we'll add them to a negative list.

In this section, you'll find information on testing payment methods whose resulting has a .

The following card numbers are only valid for testing. They do not create a real or result in a transfer of funds.

Have a .

Join the group. Once you've joined, a is enabled in your Google account.

Any credit card in this suite can create a , , , and .

However, the customer's last name must be a specific value to evaluate whether your application properly handles failures and . Use the table below to determine the scenario you want to test and the value that triggers the behavior.

Digital River's don't currently support testing Google Pay failures and SCA.

The is created but its state is failed

The is successfully created but the state is failed

Both the and are successfully created but the state is failed

The and are successfully created by the state is failed

The , , and are successfully created but the state is failed

The is successfully created and the user is challenged

The is successfully created and the user is challenged but the state is failed

You can use the information in this section to test and scenarios on payment methods whose resulting has a .

Use the to provide success scenario test data for redirecting payment sources. Once you've done this, you should receive a Source in a pending_redirect state.

First, select one of the following payment methods for redirect sources. Then identify the error scenario you would like to test against. Finally, when , set the lastName parameter in the to the value you expect to trigger the scenario.

You can use the information in this section to test and scenarios on payment methods whose resulting has a .

Use the for receiver-type payment methods to provide success scenario test data. Once you've done this, you should receive a Source in a pending_funds state. You can then use the Source to complete your Checkout or Order.

First, identify the error scenario you would like to test against from the following table. Then when , set the lastName parameter in the to the value you expect to trigger the scenario.

To test for successful or failed payment scenarios, use any card number available under . Visit the Bank Response Page via the following URL to specify the card's behavior. Before running the test scenario, complete the necessary fields and set the Transaction Status to Y for a success scenario and N for an error scenario.

To conduct end-to-end testing of your financial systems before going live, you'll need to use our production environment. This is because Digital River's financial APIs, which can be used to access , , and , aren't supported in . As a result, you can't in this mode to listen for with a of sales_transaction.created and payout.created.

Don't use the test data contained in this article. Doing so might negatively affect your authorization rates, trigger manual reviews of transactions by Digital River, and result in fraud blocks placed on the email address.

Google Account
Google Pay API Test Cards Allowlist
test card suite
Strong Customer Authentication
low-code checkout solutions
order's
source
source
Tax identifiers
payment sources
DigitalRiver.js
DigitalRiverCheckout.js
Supported payment methods
Supported payment methods
How to get started with payments testing
Which payment methods are supported in our test environment
standard
redirect
receiver
Production testing best practices
standard
redirect
receiver
source
source
refund
source
success
error
https://test.ccavenue.com/bnk/servlet/processCCardReq?gtwID=AVN&requestType=PAYMENT
configure a webhook
events
success
error
source
source
source
source
source
standard authentication flow
receiver authentication flow
create source method
Owner object
creating a source
create source method
Owner object
creating a source
charge
charge
capture
redirect authentication flow
source
charge's
charge
capture's
charge
cancel's
charge
capture
refund's
charge's
authentication flow
test tax identifiers
charge
source
sales transactions
sales summaries
payouts
type
test API keys
confidential (secret)
public test key
test environment
test mode
Testing CCAvenue