> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gr4vy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Recurring transactions with Embed

Embed automatically tries to apply the right flags based on the situation, mainly using the provided `paymentSource` property and whether a stored card is used for the transaction.

By default, the flags from the [E-commerce](./scenarios#e-commerce)
scenario are used for a regular card payment. For transactions where the card is stored,
Embed applies the properties from the [Fast checkout](./scenarios#fast-checkout) scenario.

A `paymentSource` prop can be set when initializing Embed and it can be set to
either `installment` or `recurring`. In those cases, the card is always
stored (forcing `store=true`) and every transaction is marked as being the first
in a series (`is_subsequent_payment=false`).

As a result, with `paymentSource` set to `installment` or `recurring` you
are provided with a payment method that can be re-used to create
subsequent merchant-initiated subsequent transactions.
