awaiting_authentication status indicates that the payer must complete additional authentication.| Status | Meaning |
|---|---|
pending | The transaction is being processed. |
awaiting_authentication | The transaction is waiting for the payer to complete payment authentication. |
succeeded | The payment succeeded. |
failed | The local transaction has been marked as failed. |
requires_action after a card payment is created, the transaction service sets the local transaction to awaiting_authentication instead of immediately marking it as failed.status.POST /transactions endpoint. A separate endpoint for creating 3DS payments is not required.{
"id": "transaction-example",
"accountId": "acc-example",
"amount": 100,
"method": "card",
"status": "awaiting_authentication",
"authentication": {
"type": "stripe_three_d_secure",
"clientSecret": "pi_example_secret_example",
"publishableKey": "pk_test_example",
"stripeConnectedAccountId": "acct_example"
}
}100 means 100 cents, or USD 1.00.| Field | Purpose |
|---|---|
authentication.type | Identifies the authentication flow. Card 3DS uses stripe_three_d_secure. |
authentication.clientSecret | Allows the client to interact with this PaymentIntent and complete authentication. |
authentication.publishableKey | Initializes the Stripe client SDK. |
authentication.stripeConnectedAccountId | Identifies the Stripe connected account for the payment. |
authentication object is stored on the transaction. The Stripe publishable key is read from the corresponding provider configuration and copied into authentication when the payment is created.authentication object and omit internal providers information. If a response still contains authentication, the caller must check the transaction status before attempting authentication again. The presence of this field alone does not mean authentication is currently required.requires_action, we store the transaction and authentication details, then return awaiting_authentication.handleNextAction, allowing the Stripe SDK to display the required authentication interface.const stripe = await loadStripe(authentication.publishableKey, {
stripeAccount: authentication.stripeConnectedAccountId,
locale: 'en',
})
const { error, paymentIntent } = await stripe.handleNextAction({
clientSecret: authentication.clientSecret,
})handleNextAction handles a PaymentIntent in the requires_action state. Authentication that requires payer interaction must be completed on the client and cannot be replaced by backend API calls alone. See the Stripe SDK documentation.requires_payment_method. A payment method can then be supplied and the same payment reconfirmed. See Stripe's retry guidance.| Current Stripe Status | Frontend Action |
|---|---|
requires_action | Call handleNextAction to complete authentication. |
requires_payment_method, with the original PaymentMethod ID available | Call confirmCardPayment to reconfirm the same PaymentIntent. |
succeeded | Display payment success. |
await stripe.confirmCardPayment(clientSecret, {
payment_method: paymentMethodId,
})retrievePaymentIntent to check the Stripe status and attempts to obtain the original payment method from last_payment_error.payment_method.id. If no usable PaymentMethod is available, this direct retry path cannot complete the retry, and a payment method must be provided separately.payment_intent.succeededpayment_intent.payment_failed| Notification | Local Handling |
|---|---|
payment_intent.succeeded | Use transactionId in the metadata to find the transaction and update it from pending or awaiting_authentication to succeeded. |
payment_intent.payment_failed, with PaymentIntent status requires_payment_method | Preserve the existing local status instead of setting it to failed, allowing a subsequent retry. |
| Other cases that reach the failure-handling branch | Mark an eligible transaction as failed and store the failure details. |
payment_intent.payment_failed is an event type, indicating that a payment attempt failed.requires_payment_method is a Stripe PaymentIntent status.failed is a local transaction status in our system.requires_payment_method applies to all failure notifications with that status, not only 3DS failures. Therefore, a local transaction that remains awaiting_authentication may represent either an authentication flow that has not been completed or a failed attempt that can still be retried.failed to transition directly to succeeded. Skipping the failure notifications described above does not mean every local failure scenario supports retries.event.account.WORK.md still states that failure notifications update transactions to failed. It does not yet describe the current rule that skips notifications whose PaymentIntent status is requires_payment_method. This document describes the current code. Preparing this document did not change the business code or the original design document.