#krishna008

1 messages · Page 1 of 1 (latest)

runic boughBOT
winged badger
#

hi! what is the 'checkot page' exactly? Which APIs are you using?

#

a screenshot for example might help.

unique temple
winged badger
#

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.

unique temple
#

okay.

#

Thank you

#

If I have subscripion id how can I know time period for subscription?

winged badger
unique temple
#

can i get next due date here?

winged badger
#

what do you call the 'due date' exactly, what does that mean to you?

unique temple
#

next paying date for subscription.

winged badger
#

that is current_period_end then.

unique temple
#

And does cance_at means whole subscription end?

#

cancel_at

winged badger
#

you can read the description for that field in the API reference, linked above, that explains what the field is.

unique temple
#

Yes I'm confuese because I got two created_at

winged badger
#

there is a cancel_at and a canceled_at , which have the meanings explained in the API reference.

unique temple
#

sorry created_at

#

not cacel_at

#

and canceled_at

#

there are cancel_at and canceled_at

#

that is confusing.

winged badger
#

what can I help clarify?

unique temple
#

what is diffrence between cancel_at and canceled_at

runic boughBOT
strange olive
#

👋 taking over for my colleague. Let me catch up.

unique temple
#

Okay sir.

strange olive
#

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.

unique temple
#

so canceled at means if somone cancel it manually.

strange olive
#

no

unique temple
#

so if sunscription is cancelled before it's time

#

is it?

strange olive
#

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

unique temple
#

Okay. Thank you so much for your help/