Minor fixes for stripe imports

This commit is contained in:
David Bomba 2022-09-21 20:35:36 +10:00
parent f3bf43ed40
commit 50f08362a3

View File

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