Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Error in swapNextCycle(): Carbon required, null given #243

Open
zqstack opened this issue Sep 8, 2020 · 1 comment
Open

Error in swapNextCycle(): Carbon required, null given #243

zqstack opened this issue Sep 8, 2020 · 1 comment

Comments

@zqstack
Copy link

zqstack commented Sep 8, 2020

When calling swapNextCycle() the same way as swap(), it is returning an error. Whereas swap() is working.

Argument 1 passed to Laravel\Cashier\Subscription::scheduleNewOrderItemAt() must be an instance of Carbon\Carbon, null given, called in /vendor/laravel/cashier-mollie/src/Subscription.php on line 246

What should I do?

@lexdewilligen
Copy link
Contributor

lexdewilligen commented Oct 3, 2020

If I'm correct, $cycle_ends_at can only be null if the subscription has been cancelled. Could that be your case? Maybe if you resume the subscription in the proper way (https://github.com/laravel/cashier-mollie#resuming-subscriptions), your issue should be resolved.

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

No branches or pull requests

2 participants