#lukas-checkout-product

1 messages · Page 1 of 1 (latest)

bold yew
#

Hi there, you can use checkout with ad-hoc product or existing prouduct

thorn sierra
#

In the Checkout session I can use an ad-hoc Product, but then on UpdateSubscription, I cannot refer to that Product and I can't create a new ad-hoc Product?

bold yew
#

You can. Basically Stripe created a new product under the hook.

There are many ways to get subscription

  1. Listening to the customer.subscription.created event https://stripe.com/docs/api/events/types#event_types-customer.subscription.created
  2. Pass the customer ID to list the subscription https://stripe.com/docs/api/subscriptions/list

You can get the price object from subscription object from items.data.price https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-price

thorn sierra
#

Yeah, but as per yesterday's thread (message link #dev-help message) I understood that that Product that is created is automatically Archived without a possibility of referral from UpdateSubscription endpoint. It also is not possible to 'Unarchive' it. And UpdateSubscription does not have 'Product_data parameter to create a new Product.

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

bold yew
#

If that's the case, i'll say it's safer to create the produce/price up front, and pass the ID to the checkout session creation API call.

thorn sierra
#

Thanks. We don't want to create products beforehand in the Dashboard, but we can use CreateProduct API when creating session to make a Product.

#

If I have other questions (could be only loosely related to this one), should I post it back in dev-help or here?

bold yew
#

sure we can continue the discussion here

thorn sierra
#

Is the test_clocks API working? I tried to create one, but I am getting 'Unrecognized request URL error'

midnight stratus
#

that would mean your account is not in the beta for that feature

thorn sierra
midnight stratus
#

definitely possible! I'm not sure what the timeframes are, but that is how you apply yep so the team would be in touch.

thorn sierra
#

Got it, thanks. I will relay this info back to my team and will be waiting for any news.

midnight stratus
#

oh ok

#

new question is

Can we hide 'Save my info' checkbox in Stripe Checkout?

#

yes, just don't pass setup_future_usage to the Session