laravel / cashier-stripe

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.
https://laravel.com/docs/billing
MIT License
2.37k stars 667 forks source link

Use of anchorBillingCycleOn() for subscription checkout #1658

Closed ybert closed 5 months ago

ybert commented 5 months ago

I would like to change anchor billing cycle date for a new subscription.

I tried this simple one :

$checkoutBuilder = $user
            ->newSubscription('default', ['price_yearly'])
            ->anchorBillingCycleOn(Carbon::tomorrow())
            ->checkout();

In the checkout post data of stripe I can't see any subscription_data[billing_cycle_anchor] parameter as it's shown here : https://docs.stripe.com/payments/checkout/billing-cycle?ui=stripe-hosted#create-session

Am I missing something ?

driesvints commented 5 months ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

ybert commented 5 months ago

@driesvints I think it is a bug as Cashier doesn't send the parameter at all to stripe.

driesvints commented 5 months ago

@ybert please fill out the issue template when reporting bugs