# Place a hold on a payment method Separate payment authorization and capture to create a charge now, but capture funds later. When you create a payment, you can place a hold on an eligible payment method to reserve funds that you can capture later. For example, hotels often authorize a payment in full before a guest arrives, then capture the money when the guest checks out. This is sometimes referred to as *manual capture*. See the [sample app on GitHub](https://github.com/stripe-samples/placing-a-hold). Authorizing a payment guarantees the amount by holding it on the customer’s payment method. If you’re using the API, the [payment_method_details.card.capture_before](https://docs.stripe.com/api/charges/object.md#charge_object-payment_method_details-card-capture_before) attribute on the charge indicates when the authorization expires. You need to capture the funds before the authorization expires. If the authorization expires before you capture the funds, the funds are released and the payment status changes to `canceled`. Learn more about [statuses for asynchronous payments](https://docs.stripe.com/payments/paymentintents/lifecycle.md). ## Authorization validity windows The following tables outline validity windows for authorizing different transaction types. ### Card-not-present transactions | Card brand | [Merchant-Initiated Transaction](https://docs.stripe.com/payments/cits-and-mits.md) authorization validity window | [Customer-Initiated Transaction](https://docs.stripe.com/payments/cits-and-mits.md) authorization validity window | | -------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | | **Visa** | 5 days* | 7 days | | **Mastercard** | 7 days | 7 days | | **American Express** | 7 days | 7 days | | **Discover** | 7 days | 7 days | \* The exact authorization window is 4 days and 18 hours, to allow time for clearing processes. ### Card-present transactions (in-person payments) | Card brand | Authorization validity window | | -------------------- | ----------------------------- | | **Visa** | 5 days* | | **Mastercard** | 2 days | | **American Express** | 2 days | | **Discover** | 2 days | \* The exact authorization window is 4 days and 18 hours, to allow time for clearing processes. ### 30-day authorization windows in Japan If your account is based in Japan, you can hold JPY-denominated transactions from Visa, Mastercard, JCB, Diners Club, and Discover for up to 30 days. Non-JPY and American Express transactions expire after the standard 7-day window. As of April 14, 2024, Visa shortened the authorization window for online [Merchant-Initiated Transactions](https://docs.stripe.com/payments/cits-and-mits.md) from 7 days to 5 days. Visa also lengthened the authorization window for in-person (Terminal) transactions from 2 days to 5 days. ## Payment method limitations Before implementing, understand the following limitations for authorizing and capturing separately. - Only some payment methods support separate authorization and *capture*. Some payment methods that support this include cards, Affirm, Afterpay, Cash App Pay, Klarna, and PayPal. Some payment methods that don’t support this include [ACH](https://docs.stripe.com/payments/ach-direct-debit.md) and [iDEAL](https://docs.stripe.com/payments/ideal.md). Read more about [payment method feature support](https://docs.stripe.com/payments/payment-methods/payment-method-support.md). - Beyond what is outlined in the tables above, other payment methods have different rules and authorization windows: - Card payments: The amount is typically on hold for 7 days for online payments and 2 days for in-person Terminal payments (depending on the type of transaction and the card network). You can request an extended authorization for certain [online](https://docs.stripe.com/payments/extended-authorization.md) and [Terminal payment authorizations](https://docs.stripe.com/terminal/features/extended-authorizations.md) that are eligible for extended validity periods. Card networks may also restrict 1 USD authorizations you don’t intend to capture. - [Affirm](https://docs.stripe.com/payments/affirm/accept-a-payment.md?platform=web#manual-capture): If Affirm requires a down payment for very large order amounts, they charge the amount during authorization and refund if the payment isn’t captured. You then have 30 days to capture the payment balance. - [Afterpay / Clearpay](https://docs.stripe.com/payments/afterpay-clearpay/accept-a-payment.md?web-or-mobile=web&payment-ui=direct-api#manual-capture): During authorization, the customer pays the first repayment installment. Afterpay refunds the payment if it’s never captured. You then have 13 days to capture the payment balance. - [Cash App Pay](https://docs.stripe.com/payments/cash-app-pay/accept-a-payment.md?web-or-mobile=web&payment-ui=direct-api#manual-capture): Valid authorizations must be captured within 7 days to complete a payment. - [Klarna](https://docs.stripe.com/payments/klarna/accept-a-payment.md?web-or-mobile=web&payment-ui=direct-api#manual-capture): You must capture the charge by midnight of the 28th calendar day after the charge request, otherwise the authorization expires. For example, you’d need to capture a charge request at UTC 2020-10-01 14:00 by UTC 2020-10-29 00:00. - [PayPal](https://docs.stripe.com/payments/paypal/accept-a-payment.md?web-or-mobile=web&payment-ui=direct-api#manual-capture): Holds the amount for 10 days. Stripe automatically attempts to extend the hold for another 10 days, totalling 20 days. Your [settlement preference](https://docs.stripe.com/payments/paypal/choose-settlement-preference.md) might affect the authorization period. See [separate authorization and capture](https://docs.stripe.com/payments/paypal/accept-a-payment.md?web-or-mobile=web&payment-ui=direct-api#manual-capture) for more information. ## Use the Dashboard to authorize and capture You can authorize a payment and capture funds separately without writing code. 1. In the Dashboard, [create a new payment](https://dashboard.stripe.com/test/payments/new). Select **One-time**. 1. When you enter or select the payment method, select **More options** then **Capture funds later**. The payment appears in your [payments page](https://dashboard.stripe.com/test/payments) as **Uncaptured**. To capture the funds, go to the payment details page and click **Capture**. ## Tell Stripe to authorize only To indicate that you want separate authorization and capture, specify [capture_method](https://docs.stripe.com/api/payment_intents/create.md#create_payment_intent-capture_method) as `manual` when creating the PaymentIntent. This parameter instructs Stripe to authorize the amount but not capture it on the customer’s payment method. ```dotnet StripeConfiguration.ApiKey = "<>"; var options = new PaymentIntentCreateOptions { Amount = 1099, Currency = "USD", PaymentMethodTypes = new List { "card" }, CaptureMethod = "manual", }; var service = new PaymentIntentService(); PaymentIntent paymentIntent = service.Create(options); ``` ```go stripe.Key = "<>" params := &stripe.PaymentIntentParams{ Amount: stripe.Int64(1099), Currency: stripe.String(string(stripe.CurrencyUSD)), PaymentMethodTypes: []*string{stripe.String("card")}, CaptureMethod: stripe.String(string(stripe.PaymentIntentCaptureMethodManual)), }; result, err := paymentintent.New(params); ``` ```java Stripe.apiKey = "<>"; PaymentIntentCreateParams params = PaymentIntentCreateParams.builder() .setAmount(1099L) .setCurrency("USD") .addPaymentMethodType("card") .setCaptureMethod(PaymentIntentCreateParams.CaptureMethod.MANUAL) .build(); PaymentIntent paymentIntent = PaymentIntent.create(params); ``` ```node const stripe = require('stripe')('<>'); const paymentIntent = await stripe.paymentIntents.create({ amount: 1099, currency: 'USD', payment_method_types: ['card'], capture_method: 'manual', }); ``` ```python import stripe stripe.api_key = "<>" payment_intent = stripe.PaymentIntent.create( amount=1099, currency="USD", payment_method_types=["card"], capture_method="manual", ) ``` ```php $stripe = new \Stripe\StripeClient('<>'); $paymentIntent = $stripe->paymentIntents->create([ 'amount' => 1099, 'currency' => 'USD', 'payment_method_types' => ['card'], 'capture_method' => 'manual', ]); ``` ```ruby Stripe.api_key = '<>' payment_intent = Stripe::PaymentIntent.create({ amount: 1099, currency: 'USD', payment_method_types: ['card'], capture_method: 'manual', }) ``` With the above approach, you tell Stripe that you can only use “capture after” for a PaymentIntent with eligible payment methods. For example, you can’t accept card payments and SEPA Direct Debit (which doesn’t support capture after) for a single PaymentIntent. To accept payment methods that might not all support capture after, you can configure capture-after-per-payment-method by configuring `capture_method=manual` on the `payment_method_options[]` object. For example, by configuring `payment_method_options[card][capture_method]=manual`, you’re placing only card payments on hold. You can manage payment methods from the [Dashboard](https://dashboard.stripe.com/settings/payment_methods). Stripe handles the logic for [dynamically displaying](https://docs.stripe.com/payments/payment-methods/dynamic-payment-methods.md) the most relevant eligible payment methods to each customer based on factors such as the transaction’s amount, currency, and payment flow. ```dotnet StripeConfiguration.ApiKey = "<>"; var options = new PaymentIntentCreateOptions { Amount = 1099, Currency = "USD", AutomaticPaymentMethods = new PaymentIntentAutomaticPaymentMethodsOptions { Enabled = true }, PaymentMethodOptions = new PaymentIntentPaymentMethodOptionsOptions { Card = new PaymentIntentPaymentMethodOptionsCardOptions { CaptureMethod = "manual" }, }, }; var service = new PaymentIntentService(); PaymentIntent paymentIntent = service.Create(options); ``` ```go stripe.Key = "<>" params := &stripe.PaymentIntentParams{ Amount: stripe.Int64(1099), Currency: stripe.String(string(stripe.CurrencyUSD)), AutomaticPaymentMethods: &stripe.PaymentIntentAutomaticPaymentMethodsParams{ Enabled: stripe.Bool(true), }, PaymentMethodOptions: &stripe.PaymentIntentPaymentMethodOptionsParams{ Card: &stripe.PaymentIntentPaymentMethodOptionsCardParams{ CaptureMethod: stripe.String("manual"), }, }, }; result, err := paymentintent.New(params); ``` ```java Stripe.apiKey = "<>"; PaymentIntentCreateParams params = PaymentIntentCreateParams.builder() .setAmount(1099L) .setCurrency("USD") .setAutomaticPaymentMethods( PaymentIntentCreateParams.AutomaticPaymentMethods.builder().setEnabled(true).build() ) .setPaymentMethodOptions( PaymentIntentCreateParams.PaymentMethodOptions.builder() .setCard( PaymentIntentCreateParams.PaymentMethodOptions.Card.builder() .setCaptureMethod( PaymentIntentCreateParams.PaymentMethodOptions.Card.CaptureMethod.MANUAL ) .build() ) .build() ) .build(); PaymentIntent paymentIntent = PaymentIntent.create(params); ``` ```node const stripe = require('stripe')('<>'); const paymentIntent = await stripe.paymentIntents.create({ amount: 1099, currency: 'USD', automatic_payment_methods: { enabled: true, }, payment_method_options: { card: { capture_method: 'manual', }, }, }); ``` ```python import stripe stripe.api_key = "<>" payment_intent = stripe.PaymentIntent.create( amount=1099, currency="USD", automatic_payment_methods={"enabled": True}, payment_method_options={"card": {"capture_method": "manual"}}, ) ``` ```php $stripe = new \Stripe\StripeClient('<>'); $paymentIntent = $stripe->paymentIntents->create([ 'amount' => 1099, 'currency' => 'USD', 'automatic_payment_methods' => ['enabled' => true], 'payment_method_options' => ['card' => ['capture_method' => 'manual']], ]); ``` ```ruby Stripe.api_key = '<>' payment_intent = Stripe::PaymentIntent.create({ amount: 1099, currency: 'USD', automatic_payment_methods: {enabled: true}, payment_method_options: {card: {capture_method: 'manual'}}, }) ``` Alternatively, you can list `card` and `sepa_debit` using [payment method types](https://docs.stripe.com/api/payment_intents/create.md#create_payment_intent-payment_method_types) like in the example below. ```dotnet StripeConfiguration.ApiKey = "<>"; var options = new PaymentIntentCreateOptions { Amount = 1099, Currency = "eur", PaymentMethodTypes = new List { "card", "sepa_debit" }, PaymentMethodOptions = new PaymentIntentPaymentMethodOptionsOptions { Card = new PaymentIntentPaymentMethodOptionsCardOptions { CaptureMethod = "manual" }, }, }; var service = new PaymentIntentService(); PaymentIntent paymentIntent = service.Create(options); ``` ```go stripe.Key = "<>" params := &stripe.PaymentIntentParams{ Amount: stripe.Int64(1099), Currency: stripe.String(string(stripe.CurrencyEUR)), PaymentMethodTypes: []*string{stripe.String("card"), stripe.String("sepa_debit")}, PaymentMethodOptions: &stripe.PaymentIntentPaymentMethodOptionsParams{ Card: &stripe.PaymentIntentPaymentMethodOptionsCardParams{ CaptureMethod: stripe.String("manual"), }, }, }; result, err := paymentintent.New(params); ``` ```java Stripe.apiKey = "<>"; PaymentIntentCreateParams params = PaymentIntentCreateParams.builder() .setAmount(1099L) .setCurrency("eur") .addPaymentMethodType("card") .addPaymentMethodType("sepa_debit") .setPaymentMethodOptions( PaymentIntentCreateParams.PaymentMethodOptions.builder() .setCard( PaymentIntentCreateParams.PaymentMethodOptions.Card.builder() .setCaptureMethod( PaymentIntentCreateParams.PaymentMethodOptions.Card.CaptureMethod.MANUAL ) .build() ) .build() ) .build(); PaymentIntent paymentIntent = PaymentIntent.create(params); ``` ```node const stripe = require('stripe')('<>'); const paymentIntent = await stripe.paymentIntents.create({ amount: 1099, currency: 'eur', payment_method_types: ['card', 'sepa_debit'], payment_method_options: { card: { capture_method: 'manual', }, }, }); ``` ```python import stripe stripe.api_key = "<>" payment_intent = stripe.PaymentIntent.create( amount=1099, currency="eur", payment_method_types=["card", "sepa_debit"], payment_method_options={"card": {"capture_method": "manual"}}, ) ``` ```php $stripe = new \Stripe\StripeClient('<>'); $paymentIntent = $stripe->paymentIntents->create([ 'amount' => 1099, 'currency' => 'eur', 'payment_method_types' => ['card', 'sepa_debit'], 'payment_method_options' => ['card' => ['capture_method' => 'manual']], ]); ``` ```ruby Stripe.api_key = '<>' payment_intent = Stripe::PaymentIntent.create({ amount: 1099, currency: 'eur', payment_method_types: ['card', 'sepa_debit'], payment_method_options: {card: {capture_method: 'manual'}}, }) ``` Before continuing to capture, attach a payment method with card details to the PaymentIntent, and authorize the card by confirming the PaymentIntent. You can do this by setting the `payment_method` and `confirm` fields on the PaymentIntent. Usually, an authorization for an online card payment is valid for 7 days. To increase the validity period, you can [place an extended hold on an online card payment](https://docs.stripe.com/payments/extended-authorization.md). ## Capture the funds After the payment method is authorized, the PaymentIntent [status](https://docs.stripe.com/api/payment_intents/object.md#payment_intent_object-status) transitions to `requires_capture`. To capture the authorized funds, make a PaymentIntent [capture](https://docs.stripe.com/api/payment_intents/capture.md) request. This captures the total authorized amount by default. To capture less or (for certain online card payments) more than the initial amount, pass the [amount_to_capture](https://docs.stripe.com/api/payment_intents/capture.md#capture_payment_intent-amount_to_capture) option. A partial capture automatically releases the remaining amount. If attempting to capture more than the initial amount for an online card payment, refer to the [overcapture documentation](https://docs.stripe.com/payments/overcapture.md). The following example demonstrates how to capture 7.50 USD of the authorized 10.99 USD payment: ```dotnet StripeConfiguration.ApiKey = "<>"; var options = new PaymentIntentCaptureOptions { AmountToCapture = 750 }; var service = new PaymentIntentService(); PaymentIntent paymentIntent = service.Capture("pi_123", options); ``` ```go stripe.Key = "<>" params := &stripe.PaymentIntentCaptureParams{AmountToCapture: stripe.Int64(750)}; result, err := paymentintent.Capture("pi_123", params); ``` ```java Stripe.apiKey = "<>"; PaymentIntent resource = PaymentIntent.retrieve("pi_123"); PaymentIntentCaptureParams params = PaymentIntentCaptureParams.builder().setAmountToCapture(750L).build(); PaymentIntent paymentIntent = resource.capture(params); ``` ```node const stripe = require('stripe')('<>'); const paymentIntent = await stripe.paymentIntents.capture( 'pi_123', { amount_to_capture: 750, } ); ``` ```python import stripe stripe.api_key = "<>" payment_intent = stripe.PaymentIntent.capture( "pi_123", amount_to_capture=750, ) ``` ```php $stripe = new \Stripe\StripeClient('<>'); $paymentIntent = $stripe->paymentIntents->capture('pi_123', ['amount_to_capture' => 750]); ``` ```ruby Stripe.api_key = '<>' payment_intent = Stripe::PaymentIntent.capture('pi_123', {amount_to_capture: 750}) ``` Although some card payments are eligible for [multicapture](https://docs.stripe.com/payments/multicapture.md), you can only perform one capture on an authorized payment for most payments. If you partially capture a payment, you can’t perform another capture for the difference. (Instead, consider [saving the customer’s payment method details for later](https://docs.stripe.com/payments/save-during-payment.md#save-payment-details-for-future-use) and creating future payments as needed.) Card statements from some issuers and interfaces from payment methods don’t always distinguish between authorizations and captured (settled) payments, which can sometimes confuse customers. Additionally, when a customer completes the payment process on a PaymentIntent with manual capture, it triggers the `payment_intent.amount_capturable_updated` event. You can inspect the PaymentIntent’s [amount_capturable](https://docs.stripe.com/api/payment_intents/object.md#payment_intent_object-amount_capturable) property to see the total amount that you can capture from the PaymentIntent. ## Cancel the authorization If you need to cancel an authorization, you can [cancel the PaymentIntent](https://docs.stripe.com/refunds.md#cancel-payment). ## See Also * [Separate authorization and capture with Checkout](https://docs.stripe.com/payments/accept-a-payment.md?platform=web&ui=stripe-hosted#auth-and-capture) * [Place an extended hold on an online card payment](https://docs.stripe.com/payments/extended-authorization.md)