# Test your Stripe integration

> Use Stripe test cards to test your integration end-to-end with different scenarios.

Stripe provides test cards that you can use to test purchases in their sandbox account. You can use these test cards for many different test cases.

For more information, refer to the [Stripe test cards documentation](https://stripe.com/docs/testing).

## Prerequisites

To test your Stripe integration, you first need to complete the steps in the [Integrate Direct to Consumer (D2C) payment providers with IAP workflow](./_index.md).

## Use test cards

To confirm that test purchases are successful, validate the following information:

* The Remote Catalog is deployed and fetched at runtime.
* A purchase opens the Stripe Checkout URL and completes.
* The purchase fulfillment webhook receives `order.paid` events and grants entitlements.
* Client refreshes entitlements and content appears.

> **Note:**
>
> You can also use Stripe test cards to simulate different errors.

## Debug your integration

You can use logging tools in both the Unity Dashboard and Stripe Dashboard to debug and troubleshoot your integration.

### Unity Dashboard logs

To view logs for payment provider actions, follow these steps:

1. In the [Unity Dashboard](https://cloud.unity.com), go to **Development** > **Products**.
2. Select **In-App Purchases**.
3. Select **Payment Providers** > **Logs**.

For more information, refer to the [Logging](/cloud-code/logging/overview.md) documentation.

### Stripe Workbench

You can use Stripe's Workbench tools to debug and manage your Stripe integration. For example, you can use the Logs tab to view and filter recent API requests and responses. For more information, refer to Stripe's [Workbench documentation](https://docs.stripe.com/workbench/overview).
