> For the complete documentation index, see [llms.txt](https://thimoo.gitbook.io/stipe-checkout-connect-bubble-plugin-by-thimo/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thimoo.gitbook.io/stipe-checkout-connect-bubble-plugin-by-thimo/single-marketplace-payments/how-to-retrieve-payment-details.md).

# How to retrieve payment details?

**Note:**&#x20;

Previously we could just save the <mark style="color:orange;background-color:orange;">Payment Intent ID</mark> when creating a Checkout Session, but the latest Stripe API versions do not return the <mark style="color:orange;background-color:orange;">Payment Intent ID</mark> when creating a checkout session. You can get the <mark style="color:orange;background-color:orange;">Payment Intent ID</mark> **only** when a checkout session is confirmed via a Stripe webhook or[ GET Checkout Session](/stipe-checkout-connect-bubble-plugin-by-thimo/single-marketplace-payments/how-to-retrieve-checkout-session-details.md) details call which is provided by the plugin.

## How to use the data call

As this is a data call, you can access it using the 'Get data from an external API' Bubble expression. To retrieve the details regarding a payment we use the 'Stripe - GET Payment Intent Details' option that comes with the plugin.&#x20;

![](/files/h1osddSe7Zzmvw316PCL)

This call needs the <mark style="color:blue;background-color:blue;">Account ID</mark> value from the connected account associated with the payment and <mark style="color:orange;background-color:orange;">Payment Intent ID</mark> value from the payment you want to retrieve.

![](/files/iBmlg2NTyJBjNSODZVjD)

You will have access to a bunch of values (you can see the full response below).

![](/files/R97Wc0xJhpAZZDJ91hjw)

## Full response

```
{
    "id": "pi_3P6zJcPte03WBZ3D1RHFNuiI",
    "object": "payment_intent",
    "amount": 1000,
    "amount_capturable": 0,
    "amount_details": {
        "tip": {}
    },
    "amount_received": 1000,
    "application": "ca_CjaupOAq5MeOLpngkklHutVPLUD3OHED",
    "application_fee_amount": 200,
    "automatic_payment_methods": null,
    "canceled_at": null,
    "cancellation_reason": null,
    "capture_method": "automatic",
    "client_secret": "pi_3P6zJcPte03WBZ3D1RHFNuiI_secret_dqh1kY8Z18QRCnClN3hglxO1n",
    "confirmation_method": "automatic",
    "created": 1713463448,
    "currency": "usd",
    "customer": null,
    "description": null,
    "invoice": null,
    "last_payment_error": null,
    "latest_charge": {
        "id": "ch_3P6zJcPte03WBZ3D1BZt20qF",
        "object": "charge",
        "amount": 1000,
        "amount_captured": 1000,
        "amount_refunded": 0,
        "application": "ca_CjaupOAq5MeOLpngkklHutVPLUD3OHED",
        "application_fee": "fee_1P6zJePte03WBZ3DtFbxxa92",
        "application_fee_amount": 200,
        "balance_transaction": "txn_3P6zJcPte03WBZ3D1JnaOX2T",
        "billing_details": {
            "address": {
                "city": null,
                "country": "NL",
                "line1": null,
                "line2": null,
                "postal_code": null,
                "state": null
            },
            "email": "john@doe.com",
            "name": "John Doe",
            "phone": null
        },
        "calculated_statement_descriptor": "PIPLO.FR",
        "captured": true,
        "created": 1713463449,
        "currency": "usd",
        "customer": null,
        "description": null,
        "destination": null,
        "dispute": null,
        "disputed": false,
        "failure_balance_transaction": null,
        "failure_code": null,
        "failure_message": null,
        "fraud_details": {},
        "invoice": null,
        "livemode": false,
        "metadata": {},
        "on_behalf_of": null,
        "order": null,
        "outcome": {
            "network_status": "approved_by_network",
            "reason": null,
            "risk_level": "normal",
            "risk_score": 39,
            "seller_message": "Payment complete.",
            "type": "authorized"
        },
        "paid": true,
        "payment_intent": "pi_3P6zJcPte03WBZ3D1RHFNuiI",
        "payment_method": "pm_1P6zJcPte03WBZ3DoESgdCXA",
        "payment_method_details": {
            "card": {
                "amount_authorized": 1000,
                "brand": "visa",
                "checks": {
                    "address_line1_check": null,
                    "address_postal_code_check": null,
                    "cvc_check": "pass"
                },
                "country": "US",
                "exp_month": 1,
                "exp_year": 2025,
                "extended_authorization": {
                    "status": "disabled"
                },
                "fingerprint": "VFl4gwk9wRlop4NC",
                "funding": "credit",
                "incremental_authorization": {
                    "status": "unavailable"
                },
                "installments": null,
                "last4": "4242",
                "mandate": null,
                "multicapture": {
                    "status": "unavailable"
                },
                "network": "visa",
                "network_token": {
                    "used": false
                },
                "overcapture": {
                    "maximum_amount_capturable": 1000,
                    "status": "unavailable"
                },
                "three_d_secure": null,
                "wallet": null
            },
            "type": "card"
        },
        "radar_options": {},
        "receipt_email": null,
        "receipt_number": null,
        "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xUDNmRGRQdGUwM1dCWjNEKJLDhbEGMgYf0sXH4wE6LBbb7liCr_aI81mRpqw4ED4tanBli8ItBMeUedV4U-JN4288nx9TP9kjmm3q",
        "refunded": false,
        "review": null,
        "shipping": null,
        "source": null,
        "source_transfer": null,
        "statement_descriptor": null,
        "statement_descriptor_suffix": null,
        "status": "succeeded",
        "transfer_data": null,
        "transfer_group": null
    },
    "livemode": false,
    "metadata": {},
    "next_action": null,
    "on_behalf_of": null,
    "payment_method": "pm_1P6zJcPte03WBZ3DoESgdCXA",
    "payment_method_configuration_details": null,
    "payment_method_options": {
        "card": {
            "installments": null,
            "mandate_options": null,
            "network": null,
            "request_three_d_secure": "automatic"
        }
    },
    "payment_method_types": [
        "card"
    ],
    "processing": null,
    "receipt_email": null,
    "review": null,
    "setup_future_usage": null,
    "shipping": null,
    "source": null,
    "statement_descriptor": null,
    "statement_descriptor_suffix": null,
    "status": "succeeded",
    "transfer_data": null,
    "transfer_group": null
}
```
