#jackey_api

1 messages · Page 1 of 1 (latest)

glacial tulipBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1484013828533653667

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

crystal glade
#

If I want to obtain the product information of a transaction through the Stripe API, which API should I use?

lilac bay
#

How are you integrating with Stripe currently? Are you using Checkout Session, Payment Intent or Subscription APIs?

crystal glade
#

Payment Intent

lilac bay
crystal glade
#

Is there any other way to obtain the metadata besides specifying it when creating the Paymentintent?

lilac bay
#

I'm afraid using metadata is the only workaround for Payment Intent integration

crystal glade
#

Would the transactions created through these two methods be unable to be queried for product information using the Stripe API interface?

lilac bay
#

For manual one-time payment, you can specify the product in the description, which will the be available for description field on Payment Intent object: https://docs.stripe.com/api/payment_intents/object#payment_intent_object-description

For subscription, they use Subscription API with Stripe products and prices under the hood. Those product ID will be available under items.data.price hash in Subscription object: https://docs.stripe.com/api/subscriptions/object#subscription_object-items-data-price

crystal glade
#

What are the differences between Checkout Session, Payment Intent or Subscription APIs?

lilac bay
#

Their differences are:

  • Checkout Session is a high-level API that manages the entire checkout context - line items, discounts, tax, shipping, and adaptive pricing — with minimal code, making it the recommended default for most integrations.
  • Payment Intent is a lower-level API for charging a specific amount with a specific payment method, offering maximum flexibility but requiring you to orchestrate everything (cart state, tax, etc.) yourself.
  • Subscription is purpose-built for recurring billing - it automatically generates invoices and PaymentIntents on a schedule, manages lifecycle states (trials, past-due, cancellations), and handles retry logic, so use it whenever you need to charge customers on a recurring basis.
glacial tulipBOT
#

⛔️ Stripe developers have stepped away for a short while

Please leave your questions here, and we’ll respond as soon as we're back! If you need help urgently, you can contact Stripe support for help.