Skip to content

Commit

Permalink
add default description if not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Nov 11, 2015
1 parent 0058b0a commit 1287a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Payum/Server/Action/CapturePaymentAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function execute($request)
$payumPayment->setCurrencyCode($payment->getCurrencyCode());
$payumPayment->setClientEmail($payment->getPayer()->getEmail());
$payumPayment->setClientId($payment->getPayer()->getId() ?: $payment->getPayer()->getEmail());
$payumPayment->setDescription($payment->getDescription());
$payumPayment->setDescription($payment->getDescription() ?: sprintf('Payment %s', $payment->getNumber()));
$payumPayment->setCreditCard($payment->getCreditCard());
$payumPayment->setDetails($payment->getDetails());

Expand Down

0 comments on commit 1287a38

Please sign in to comment.