Step 5: Test Your Unified Checkout Integration {#uc-qsg-gs-step5}
=================================================================

After configuring `Unified Checkout`, it's crucial to thoroughly test your integration to ensure it works correctly and provides a smooth checkout experience for your customers. This section outlines the steps to test your `Unified Checkout` integration.  
For detailed information about `Unified Checkout` and the integration process, see the [*`Unified Checkout` Integration Guide*](https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-intro.md "").

1. Set up your test environment:

   1. Log in to the `Business Center` account using your test credentials.
   2. Switch to the test environment if not already in test mode.
   3. Set up a test website or application that integrates `Unified Checkout`.
2. Use test card numbers to simulate different payment scenarios.

   #### ADDITIONAL INFORMATION

   Here are some example test card numbers you can use:

   | Card Type        | Card Number      | Expiration Date | Card Verification Number |
   |:-----------------|:-----------------|:----------------|:-------------------------|
   | American Express | 378282246310005  | 03/2026         | 7890                     |
   | Mastercard       | 5555555555554444 | 02/2026         | 265                      |
   | Visa             | 4111111111111111 | 12/2025         | 123                      |
   [Common Card Test Numbers]

   For more test payment data, see the Test Payment Details section of the [`Unified Checkout` Developer Guide](https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-testing-intro/uc-reference-test-cards.md "").

3. Test different payment scenarios:

   #### ADDITIONAL INFORMATION

   * Successful transactions
   * Declined transactions
   * `3-D Secure` authentication, if applicable
   * Different card brands
   * Digital wallet payments, if configured
     {#uc-qsg-gs-step5_ul_yj5_jwm_gfc}
4. Verify the capture context and token handling.

   #### ADDITIONAL INFORMATION

   Ensure that your integration correctly handles the capture context and transient tokens throughout the payment process.

5. Test error handling and edge cases.

   #### ADDITIONAL INFORMATION

   Simulate various error scenarios to ensure your integration gracefully handles and reports errors to the user.

6. Verify webhook notifications, if configured.

   #### ADDITIONAL INFORMATION

   If you set up webhook notifications, ensure that your system correctly receives and processes them for various transaction events.

#### AFTER COMPLETING THE TASK

After completing these testing steps, you should have confidence in your integration. Remember to test in both the test and production environments before going live.
