Skip to content

Commit

Permalink
Payment method title may be missing. Fallback implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Aug 6, 2019
1 parent 5e68c2e commit 1ee2301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message/DetailsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ public function getPayer(): string
{
$method = $this->data->getPaymentMethod();

return $method->getTitle();
return $method->getTitle() ?: $method->getType() ?: '';
}
}

0 comments on commit 1ee2301

Please sign in to comment.