## Retrieve a PaymentIntent Retrieve a [PaymentIntent](/api/payment_intents.md) using its [client secret](/api/payment_intents/object.md#payment_intent_object-client_secret). This method returns a `Promise` which resolves with a `result` object. This object has either: * `result.paymentIntent`: a [PaymentIntent](/api/payment_intents) was retrieved successfully. * `result.error`: an error. Refer to the [API reference](/api/errors) for all possible errors. **Syntax:** `stripe.retrievePaymentIntent(...)` - `clientSecret` (string) **required** The [client secret](/api/payment_intents/object.md#payment_intent_object-client_secret) of the [PaymentIntent](/api/payment_intents.md) to retrieve. ### Retrieve a PaymentIntent ```js stripe .retrievePaymentIntent('{PAYMENT_INTENT_CLIENT_SECRET}') .then(function(result) { // Handle result.error or result.paymentIntent }); ``` ```es_next const {paymentIntent, error} = await stripe.retrievePaymentIntent( '{PAYMENT_INTENT_CLIENT_SECRET}', ); // Handle error or paymentIntent ```