1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

minor fixes for texts

This commit is contained in:
David Bomba 2021-03-30 16:10:31 +11:00
parent 9377b9cae4
commit 1af565abd3

View File

@ -211,6 +211,9 @@ class AuthorizeCreditCard
{ {
$response = $data['response']; $response = $data['response'];
$code = '';
$description = '';
if($response->getTransactionResponse()->getMessages() !== null){ if($response->getTransactionResponse()->getMessages() !== null){
$code = $response->getTransactionResponse()->getMessages()[0]->getCode(); $code = $response->getTransactionResponse()->getMessages()[0]->getCode();
$description = $response->getTransactionResponse()->getMessages()[0]->getDescription(); $description = $response->getTransactionResponse()->getMessages()[0]->getDescription();