Fixes for update payment methods - Stripe
This commit is contained in:
parent
542cb6b729
commit
48f1db60db
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue