# How Drop-in payments work

When customers initiate checkout, the client-server sends a [create checkout request](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/checkouts#checkouts-1) to Digital River, and Digital River returns a [checkout](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/checkouts). The client-server then sends the [payment session](/digital-river-api/integration-options/checkouts/creating-checkouts/payment-sessions.md) identifier to the client's front end. The client front end uses this payment session identifier and other configuration settings to instantiate Drop-in payments. Once instantiated, transaction applicable payment methods are displayed in a modal window. When customers select a payment method and provide their payment details, an [`onSuccess`](/digital-river-api/payments/payment-integrations-1/drop-in/drop-in-integration-guide.md#onsuccess) event is triggered, and the [source](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/sources) identifier is sent to the client-server. The client-server uses that identifier to associate the source with [checkouts ](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/checkouts)and/or [customers](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/customers).

{% hint style="info" %}
To better understand how the process works, check out the [interactive Drop-in builder](https://drapi.io/drop-in-builder/).
{% endhint %}

{% embed url="<https://player.vimeo.com/video/683888702?h=2b803b92e0>" %}

![](/files/CKkEECgQfbCJW41BwjHx)

## Drop-in payments flows

The following table is meant to help you better understand your embed options for Drop-in payments:

| Collect payment as part of a checkout flow                                                       | No  | See [Using Drop-in payments within your checkout flow](/digital-river-api/payments/payment-integrations-1/drop-in/drop-in-integration-guide.md#using-drop-in-within-your-checkout-flow).                                    |
| ------------------------------------------------------------------------------------------------ | --- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Offer customers the ability to store payment methods                                             | Yes | See [Allowing the customer to save their payment credentials](/digital-river-api/payments/payment-integrations-1/drop-in/drop-in-integration-guide.md#optional-allowing-the-customer-to-save-their-payment-credentials).    |
| Collect payment data from a page where customers manage or add payment methods to their accounts | Yes | See [Using Drop-in to collect payment details on a My Account page](/digital-river-api/payments/payment-integrations-1/drop-in/drop-in-integration-guide.md#using-drop-in-to-collect-payment-details-on-a-my-account-page). |


---

# 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/digital-river-api/payments/payment-integrations-1/drop-in/how-drop-in-works.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.
