# Payment methods

The following topics describe how the payment methods interact with the Magento Extension:

* [Credit Card, PayPal, Direct Debit, Online Banking, Klarna](/adobe-commerce-extension/1.0.0/operation-work-and-process-flows/payment-methods.md#credit-card-paypal-direct-debit-online-banking-klarna)
* [Order fraud flow](/adobe-commerce-extension/1.0.0/operation-work-and-process-flows/payment-methods.md#order-fraud-flow)
* [Wire Transfer (delayed payments)](/adobe-commerce-extension/1.0.0/operation-work-and-process-flows/payment-methods.md#wire-transfer-delayed-payments)

## Credit Card, PayPal, Direct Debit, Online Banking, Klarna&#x20;

<div align="left"><img src="/files/-MP6SeiRF1r2ZZvFxpkK" alt=""></div>

### Order purchase flow exception handling

#### Shopper & cart created:

* **400—** “invalid-request”, the DrPay extension will ensure a proper payload.
* **409—** “resource-already-exists”, the DrPay extension, in the case of guest checkout, will create a new Digital River shopper each time to avoid a conflict. All users created will first be created in the Magento application and then created in the Digital River application. If a user is created in Magento without being created in Digital River it will only create an error if the shopper attempts to use a stored credit card the 2nd time through the order flow. If no saved cart was used Digital River will reattempt to create the user during their next purchase.
* **500—** The shopper will not be able to check out and will encounter a fatal error when attempting to place their order. Shopper-facing error message: **"Unable to Place Order".**

#### Payment authorized:

* **400—** All payment authorization failures will display the message: **“Unable to Place Order“.**
* **409—** “invalid\_token”, if during the checkout the token is invalid for any reason, an error will occur upon trying to place their order: **“Unable to Place Order“**
* **500—** Service unavailable will result in an **“Unable to Place Order”** error message.

## Order fraud flow&#x20;

<div align="left"><img src="/files/-MP6SoEmm84HV6ZqGNw9" alt=""></div>

## Wire Transfer (delayed payments) &#x20;

<div align="left"><img src="/files/-MP6SxOWyDnuCLXsjE18" alt=""></div>

<div align="left"><img src="/files/-MP6T6WxSEEK4lCcQmZE" alt=""></div>


---

# 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/adobe-commerce-extension/1.0.0/operation-work-and-process-flows/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.
