# Payment methods

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

* [Credit Card, PayPal, Direct Debit, Online Banking, Klarna](#credit-card-paypal-direct-debit-online-banking-klarna)
* [Order fraud flow](#order-fraud-flow)
* [Wire Transfer (delayed payments)](#wire-transfer-delayed-payments)

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

<div align="left"><img src="https://421214189-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNZuMZbk2cjWhdeZ51z%2F-MP6QWz7olwQ4iRpR0nP%2F-MP6SeiRF1r2ZZvFxpkK%2FOrderPurchaseFlowDiagram.png?alt=media&#x26;token=1775abf0-1f63-46f5-9217-2d4e10c3e319" 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="https://421214189-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNZuMZbk2cjWhdeZ51z%2F-MP6QWz7olwQ4iRpR0nP%2F-MP6SoEmm84HV6ZqGNw9%2FInvoiceandShipmentFlow.png?alt=media&#x26;token=ac8109c4-96ae-42e2-a37a-097c006cdd3f" alt=""></div>

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

<div align="left"><img src="https://421214189-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNZuMZbk2cjWhdeZ51z%2F-MP6Spe-fxmK8rIg3sWR%2F-MP6SxOWyDnuCLXsjE18%2FOrderPurchaseFlowDiagramWireTransfer.png?alt=media&#x26;token=f426ac01-c260-4ecb-810b-d7e107426d1e" alt=""></div>

<div align="left"><img src="https://421214189-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNZuMZbk2cjWhdeZ51z%2F-MP6Spe-fxmK8rIg3sWR%2F-MP6T6WxSEEK4lCcQmZE%2FInvoiceandShipmentFlowWireTransfer.png?alt=media&#x26;token=ea1fe079-ebf4-4b79-ad22-4de758135757" alt=""></div>
