# Testing receiver payment methods

Wire Transfer is currently the only payment method with a `receiver` [authentication flow](/commerce-api/payments/sources.md#authentication-flow) that Digital River [supports in our testing environment](#supported-payment-methods-in-test-environment).

{% hint style="warning" %}
You should coordinate with your support team when testing wire transfers. They can provide instructions on how to move your orders into a completed state.
{% endhint %}

## Success scenarios

Use the [create source method](/commerce-api/resources/reference/digital-river-payment-objects.md#create-source-error-object) 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.

## Error scenarios

First, identify the error scenario you would like to test against from the following table. When [creating a source](/commerce-api/shopper-apis/cart/payment-sessions.md#creating-a-source-with-payment-sessions), set the `lastName` parameter in the [Owner object](/commerce-api/payments/payments-solutions/digitalriver.js/payment-methods/common-payment-objects.md#owner-object) to the value you expect to trigger the scenario.

| 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. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/commerce-api/payments/testing-scenarios/testing-receiver-payment-methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
