#krishna008
1 messages · Page 1 of 1 (latest)
hi! what is the 'checkot page' exactly? Which APIs are you using?
a screenshot for example might help.
Yes, the PaymentElement is just for collecting payment information and doesn't show context like the Subscription details, that is logic you have to build into your page.
okay.
Thank you
If I have subscripion id how can I know time period for subscription?
for example you can look at https://stripe.com/docs/api/subscriptions/object#subscription_object-current_period_end and use that information to display context to the user
can i get next due date here?
what do you call the 'due date' exactly, what does that mean to you?
next paying date for subscription.
that is current_period_end then.
you can read the description for that field in the API reference, linked above, that explains what the field is.
not sure what you mean? there is no created_at.
there is a cancel_at and a canceled_at , which have the meanings explained in the API reference.
sorry created_at
not cacel_at
and canceled_at
there are cancel_at and canceled_at
that is confusing.
what can I help clarify?
👋 taking over for my colleague. Let me catch up.
Okay sir.
cancel_at is a date in the future at which the subscription will automatically get canceled
whereas
canlceled_at the date of the subscription cancellation if it has been canceled. If the subscription was canceled with cancel_at_period_end, canceled_at will reflect the time of the most recent update request, not the end of the subscription period when the subscription is automatically moved to a canceled state.
so canceled at means if somone cancel it manually.
no
canceled_at is always going to be set once the subscription is canceled
depending on how you cancel it the value would change
if the cancellation was due to cancel_at_period_end or canceled_at then the time will reflect the update request that changed these values
if not, the cancellation would be the time that the subscription ended
Okay. Thank you so much for your help/