Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription description not found in checkout session create. #1418

Closed
StefanGhiban opened this issue May 10, 2022 · 3 comments
Closed

Subscription description not found in checkout session create. #1418

StefanGhiban opened this issue May 10, 2022 · 3 comments
Assignees
Labels

Comments

@StefanGhiban
Copy link

Describe the bug

I am trying to create a checkout session and provide descriptions for both one time payments and for subscriptions as well. I am setting these descriptions via payment_intent_data.description and subscription_data.description. The description field is available for payment_intent_data but not for subscription.

To Reproduce

  1. Create a checkout session: stripe.checkout.sessions.create()
  2. Provide payment_intent_data: {description: "test"} field
  3. Provide subscription_data: {description: "test"} field
  4. In typescript, an error will show up as description does not exist on type SubscriptionData.

Expected behavior

Expected to set a description for both one time payment and for subscription type payments. It is only possible for me on the one time payment and not subscriptions.

Code snippets

No response

OS

macos

Node version

v16.13.0

Library version

v8.191.0

API version

2020-08-27

Additional context

No response

@remi-stripe remi-stripe self-assigned this May 10, 2022
@remi-stripe
Copy link
Contributor

@StefanGhiban Thanks for the heads up! subscription_data[description] is brand new and it hasn't yet made it into stripe-node but we're working on it!

@StefanGhiban
Copy link
Author

@StefanGhiban Thanks for the heads up! subscription_data[description] is brand new and it hasn't yet made it into stripe-node but we're working on it!

Thank you!

@remi-stripe
Copy link
Contributor

This was fixed in #1420 and is now available in 9.1.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants