#savan3280

1 messages · Page 1 of 1 (latest)

amber roseBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

dark rock
#

this customer is currently in this situation cus_PdBQhFO2WNqlP4

#

i was expecting the first invoice to be 3/1/24

lean trail
#

I'd recommend setting proration_behavior to none to prevent charging in the first invoice till the next cycle and billing_cycle_anchor to the next billing cycle

dark rock
#

i saw that backdating subscriptions article but that's for subscriptions and they dont have the backdate parameter for SubscriptionSchedules

#

i already have the proration date for the phase set to none

#

and there seem to be only two valid values for the proration anchor "automatic" and "phase start"

#

i cant create a subscription because i dont have a payment method yet

lean trail
#

Why do you want to use Subscription Schedule for backdated subscription?

#

Can you share what you would like to achieve?

dark rock
#

in my initial message i said this, does it make sense?

I'm trying to import a subscription that started 3/1/23 and should invoice on 3/1/24. not sure how to do this.

#

it's an annual subscription product

lean trail
dark rock
#

to my knowledge you cant create a subscription without a payment method

#

and as i said i dont have the payment method yet

#

that is why i'm trying to use a Schedule, because you dont need a payment method for a schedule

#

i tried this:
trial = stripe.Subscription.create(
customer=customer_id,
items=[{"price": price_id_of_product}],
# march_1_2023 = 1677666015
backdate_start_date=1677666015,

        # march_1_2024 = 1709332219
        # billing cycle anchor to 3/1/24
        billing_cycle_anchor=1709332219
    )

and got this

stripe.error.InvalidRequestError: Request req_OImsynLXNEDDb7: This customer has no attached payment source or default payment method. Please consider adding a default payment method. For more information, visit https://stripe.com/docs/billing/subscriptions/payment-methods-setting#payment-method-priority.

Learn how to specify which payment methods are allowed for a subscription.

lean trail
#

proration_behavior wasn't set to none in your request

dark rock
#

oh dang

#

i just realized that also

#

i had it set in the sub schedule but not the subscription request

lean trail
#

by setting to proration_behavior to none, no immediate payment is required which you can collect payment method later with Setup Intent under pending_setup_intent

dark rock
#

makes total sense

#

well at least i tried to read the docs 🙂

#

this is literally the most helpful product discord i've used and i've used a bunch

#

thanks!