💳
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 Checkout Session details?

This section goes over the 'GET Checkout Session Details' data call for Checkout Sessions (single payments) and shows the full response.

PreviousCreating single marketplace paymentsNextRefund a payment (Single Payment)

Last updated 1 year ago

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 account associated with the payment and Checkout 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, the payment_intent field in the response contains the Payment Intent ID).

Full response

{
  "id": "cs_test_a1Rh4I8IGPrahiGzGGGaNNzUDhi4UF4tAaSQmndXi8GRGWMYlr0zza4MRT",
  "object": "checkout.session",
  "after_expiration": null,
  "allow_promotion_codes": null,
  "amount_subtotal": 1000,
  "amount_total": 1000,
  "automatic_tax": {
    "enabled": false,
    "status": null
  },
  "billing_address_collection": null,
  "cancel_url": "https://stripeconnectdemo.bubbleapps.io/version-test?subscription-cancelled=true",
  "client_reference_id": null,
  "consent": null,
  "consent_collection": null,
  "currency": "usd",
  "customer": null,
  "customer_creation": "always",
  "customer_details": null,
  "customer_email": null,
  "expires_at": 1649186452,
  "livemode": false,
  "locale": null,
  "mode": "subscription",
  "payment_intent": pi_...,
  "payment_link": null,
  "payment_method_options": null,
  "payment_method_types": [
    "card"
  ],
  "payment_status": "unpaid",
  "phone_number_collection": {
    "enabled": false
  },
  "recovered_from": null,
  "setup_intent": null,
  "shipping": null,
  "shipping_address_collection": null,
  "shipping_rate": null,
  "status": "expired",
  "submit_type": null,
  "subscription": null,
  "success_url": "https://stripeconnectdemo.bubbleapps.io/version-test?subscription-succeeded=true",
  "total_details": {
    "amount_discount": 0,
    "amount_shipping": 0,
    "amount_tax": 0
  },
  "url": null
}