Fixes for update payment methods - Stripe

This commit is contained in:
David Bomba 2022-12-13 19:53:13 +11:00
parent 542cb6b729
commit 48f1db60db

View File

@ -74,7 +74,7 @@ class UpdatePaymentMethods
{
$sources = $customer->sources;
if(!$customer || !property_exists($sources, 'data'))
if(!$customer || is_null($sources) || !property_exists($sources, 'data'))
return;
foreach ($sources->data as $method) {