💳
Stripe Checkout Connect - Bubble Plugin by Thimo
  • Get started
    • Introduction
    • Plugin setup
  • Connecting Stripe Accounts
    • Onboarding a user (connecting Stripe account)
    • Retrieve account information
    • How to retrieve Pending and Available balances
  • Single marketplace payments
    • Creating single marketplace payments
    • How to retrieve Checkout Session details?
    • Refund a payment (Single Payment)
    • How to retrieve payment details?
  • Marketplace subscriptions
    • Creating subscription marketplace payments
    • Refund a payment (Subscription Payment)
    • How to list invoices for a subscription?
    • How to cancel a subscription?
    • How to retrieve subscription details?
    • How to handle failed subscription payments?
  • For Express accounts
    • How to change a Payout Schedule for an account? (for Express accounts)
    • How to redirect user to the Express Dashboard? (for Express accounts)
    • How to perform a manual payout? (For Express accounts)
Powered by GitBook
On this page
  • How to use the data call
  • Full response
  1. Single marketplace payments

How to retrieve payment details?

This section goes over the 'Stripe - GET Payment Intent Details' data call for Single Payments and shows the full response.

PreviousRefund a payment (Single Payment)NextCreating subscription marketplace payments

Last updated 1 year ago

Note:

Previously we could just save the Payment Intent ID when creating a Checkout Session, but the latest Stripe API versions do not return the Payment Intent ID when creating a checkout session. You can get the Payment Intent ID only when a checkout session is confirmed via a Stripe webhook or 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.

This call needs the Account ID value from the connected account associated with the payment and Payment Intent ID value from the payment you want to retrieve.

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

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
}
GET Checkout Session