#やまだ えしら

1 messages · Page 1 of 1 (latest)

shrewd oasisBOT
uneven shadow
valid valve
#

Ok, w8 a min

#

req_yXwsOwijjF7OIa

uneven shadow
valid valve
#

I see, update includes start_date, but create does not.

uneven shadow
#

Yes

valid valve
#

This is a slightly different question:

For example, if I want to create a subscription on 5/25 with a 5/1 start and 5/1 as the billing_cycle_anchor, how do I do that?

I am not a main English speaker, so sorry if my meaning is not correct.

#

As a requirement:

  1. full payment even if the contract starts in the middle of the month
  2. the payment cycle should be the 1st day of each month
uneven shadow
valid valve
#

Yes!

#

backdate_start_date
I see, so you can use this to create backdate subscriptions.

uneven shadow
#

Yes, you can follow along this doc to implement backdating

valid valve
#

I tried at req_ZbALZeGUN5UEqq

#

The time period is unintended.
For example, if I created it today, I want it to follow 5/30~6/1, 6/1~7/1, 7/1~8/1. Right now it is 5/30~6/30, 6/30~7/30.

uneven shadow
#

You should also specify a billing_cycle_anchor

valid valve
#

thank you. i test it!

#

The billing_cycle_anchor should be on the first of next month, right?

req_cZ2hbyxKGUOv5o

#

This will not bill until the date set in the billing_cycle_anchor, which is not the behavior we are looking for.

#

Sorry, I guess I should tell you our background.

Our service is always paid on the 1st day of each month (9:00 JST). Even if you sign up in the middle of the month, you have to pay the full amount for that month at that moment. (Once the payment is completed, you can use our service.)

Currently, if the subscription is made in the middle of the month, proration_behavior is set to none, and the billing_cycle_anchor is set to 9:00 JST on the 1st day of the next month.
Since the proration_behavior is created as none, the first payment is not made. To work around this, I am manually creating an Invoice and billing.

However, I feel these flows are not the Stripe Way. The manual Invoice is getting in the way of applying coupons, etc.

uneven shadow
valid valve
#

It is the other way around. I want to create a backdated Subscription while billing immediately!

uneven shadow
#

I see, then you can set proration_behavior to always_invoice to invoice the customer immediately.

valid valve
#

Ahh, ok. I'll try it!

#

It worked perfectly. Thank you 👍