Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support invoiced subscriptions #895

Closed
h3r2on opened this issue Mar 23, 2020 · 3 comments
Closed

Support invoiced subscriptions #895

h3r2on opened this issue Mar 23, 2020 · 3 comments

Comments

@h3r2on
Copy link

h3r2on commented Mar 23, 2020

Maybe this is possible and I'm just not seeing the option to do this. I need to implement subscriptions that have no initial payment method, and are directly invoiced, Stripe has support for this via:

$subscription = \Stripe\Subscription::create([
    'customer' => 'CUSTOMER_ID,
    'items' => [['plan' => PLAN_ID]],
    'collection_method' => 'send_invoice',
    'days_until_due' => 30,
]);

Is this supported in cashier and if not I'd like to make a enhancement request.

@driesvints
Copy link
Member

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.

@h3r2on
Copy link
Author

h3r2on commented Mar 23, 2020

My issue is here: https://github.com/laravel/cashier/blob/10.0/src/SubscriptionBuilder.php#L262

The payload for subscriptions is hard coded. This should take an array of options so we can add to the payload.

@driesvints
Copy link
Member

This has been fixed on master and will be in the next release: #868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants