#rickparrot_87796

1 messages · Page 1 of 1 (latest)

neat thunderBOT
fierce cargo
#

Hello

#

When you say "setup session" do you mean that you are using Stripe Checkout in setup mode?

#

Or something else?

ionic ginkgo
#

Hello @fierce cargo thanks

#

Yes, exactly im defining using somewhing like these:

    session = stripe.checkout.Session.create(
        ui_mode='embedded',
        customer=customer_id,
        line_items=[
            {
                'price': price_id,
                'quantity': 1,
            },
        ],
        mode='subscription',
        redirect_on_completion='never',
        api_key=cls._STRIPE_API_KEY,
    )
fierce cargo
#

Okay and you want the Subscription to start in the future as opposed to immediately?

ionic ginkgo
#

Exactly, i need define the start date at future.

fierce cargo
#

Gotcha, in that case the only way to do that would be to use a trial period

#

Otherwise you want to just use mode='setup'

#

So that you are only collecting a Payment Method here. Then you can start the Subscription in the future using a Subscription Schedule

ionic ginkgo
#

Ok ok i will try and return with trial configuration