lunarphp / livewire-starter-kit

Demonstration store for Lunar
https://docs.lunarphp.io/core/starter-kits.html
160 stars 51 forks source link

Cart isn't properly associating with Order #88

Closed devmanda closed 1 month ago

devmanda commented 2 months ago

It seems like the cart isn't properly associating with an order when one is placed. I am being redirected to home on order success instead of the success page, with the error of "Cannot assign null to property App\Livewire\CheckoutSuccessPage::$order of type Lunar\Models\Order".

Full Error Tracking: https://flareapp.io/share/87nXeNym#stack

alecritson commented 2 months ago

Thanks for reporting @devmanda this has come up a few times, the issue is the time between Lunar processing Stripe's webhook and having a completed order available.

I've put together a quick PR (which should be linked to this issue now) to demonstrate how you can solve this :)

devmanda commented 2 months ago

Thank you! Will try that