#natalieh-chats

1 messages · Page 1 of 1 (latest)

stable lintel
#

Hi there! We don't do any video calls here but I'm happy to help over chat.

#

Go ahead and provide the details of the issue and I'd be happy to take a look

onyx lily
#

Much obliged, guv! We have a LOT of Customers who use Stripe installment plans with to take orders from their customers. Many of our Customers have reported the full amount owed to them is not being taken through installments. Sure enough, I ran my own test orders and it's true. I put all the data in a spreadsheet.

stable lintel
#

Can you provide one specific example I can look at?

#

And when you say "installments", do you mean you are using a Subscription Schedule to charge installments?

onyx lily
#

These are subscriptions. One such subscription is sub_1L5x3eCdgcxv635iVWUdPoIr

#

I am also happy to send a link to the Google Sheet with all my data, including invoice numbers.

stable lintel
#

The expected here is that upon renewal for that Subscription it would charge $4.50, correct?

#

Ah wait

#

You are setting cancel_at

#

Can you tell me exactly what you expect to happen with that Subscription?

onyx lily
#

Yes, I will do my best. (Bear in mind our code was written by a former employee.) We expected that once a week, for two weeks, a payment of $4.50 would be taken. The first payment was taken fine. The second was only $2.57.

stable lintel
#

Yep okay

#

So the Subscription is working as expected, but it was created incorrectly.

#

I'll explain

onyx lily
#

Do tell!

stable lintel
#

In that request "cancel_at": "1655061497" was set

#

That timestamp is for Sunday, June 12, 2022 7:18:17 PM UTC

#

However, the Subscription was created on 2022-06-01 19:18:17 UTC

#

So that cancel_at date is not the full 2 week period.

#

The last part applies here

#

"If set during a future period, this will always cause a proration for that period."

#

So that is where the $2.57 comes from

#

The cancellation date is only for part of that second week

#

So the customer isn't charged the full amount

#

To correctly do this, the cancel_at would need to be exactly two weeks from the creation timestamp

onyx lily
#

Okay, so would it need exactly two weeks to the second? I would imagine I would need to have it based on exact moment of creation. No clue what it is based off of now.

stable lintel
#

Yep, which is why I'm saying it is impossible really

onyx lily
#

Gotcha.

stable lintel
#

But the Subscription Schedule solves that

onyx lily
#

Okay, and to confirm, you're confident the change will solve our problem? I gotta tell my boss if we have a solution in place.

stable lintel
#

What I linked is the correct way to handle installments, yes.

onyx lily
#

Alrighty.

#

I skimmed the page and it looks like this doesn't even create a cancel_at date. Is that correct? Does that mean the system will cancel automatically?

stable lintel
#

You use end_behavior: 'cancel' with Subscription Schedules

#

Which will overview Subscription Schedules as a whole

onyx lily
#

Very nice. Thanks for confirming that.

Oh great, thank you so much! I really appreciate your help.