1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

fixes for types

This commit is contained in:
= 2020-09-19 12:15:38 +10:00
parent 20e4c4b1ad
commit 83be13c049
3 changed files with 14 additions and 14 deletions

View File

@ -52,8 +52,8 @@ class QueryLogging
Log::info($request->method().' - '.$request->url().": $count queries - ".$time);
if($count > 50)
Log::info($queries);
// if($count > 50)
// Log::info($queries);
}
}

View File

@ -134,8 +134,8 @@ class AuthorizePaymentMethod
$payment_meta = new \stdClass;
$payment_meta->exp_month = 'xx';
$payment_meta->exp_year = 'xx';
$payment_meta->brand = $payment_profile->getPaymentProfile()->getPayment()->getCreditCard()->getCardType();
$payment_meta->last4 = $payment_profile->getPaymentProfile()->getPayment()->getCreditCard()->getCardNumber();
$payment_meta->brand = (string)$payment_profile->getPaymentProfile()->getPayment()->getCreditCard()->getCardType();
$payment_meta->last4 = (string)$payment_profile->getPaymentProfile()->getPayment()->getCreditCard()->getCardNumber();
$payment_meta->type = $this->payment_method;
return $payment_meta;

View File

@ -163,19 +163,19 @@ class CreditCard
$payment_method_object = $state['payment_method']->jsonSerialize();
$state['payment_meta'] = [
'exp_month' => $payment_method_object['card']['exp_month'],
'exp_year' => $payment_method_object['card']['exp_year'],
'brand' => $payment_method_object['card']['brand'],
'last4' => $payment_method_object['card']['last4'],
'type' => $payment_method_object['type'],
'exp_month' => (string)$payment_method_object['card']['exp_month'],
'exp_year' => (string)$payment_method_object['card']['exp_year'],
'brand' => (string)$payment_method_object['card']['brand'],
'last4' => (string)$payment_method_object['card']['last4'],
'type' => GatewayType::CREDIT_CARD,
];
$payment_meta = new \stdClass;
$payment_meta->exp_month = $payment_method_object['card']['exp_month'];
$payment_meta->exp_year = $payment_method_object['card']['exp_year'];
$payment_meta->brand = $payment_method_object['card']['brand'];
$payment_meta->last4 = $payment_method_object['card']['last4'];
$payment_meta->type = $payment_method_object['type'];
$payment_meta->exp_month = (string)$payment_method_object['card']['exp_month'];
$payment_meta->exp_year = (string)$payment_method_object['card']['exp_year'];
$payment_meta->brand = (string)$payment_method_object['card']['brand'];
$payment_meta->last4 = (string)$payment_method_object['card']['last4'];
$payment_meta->type = GatewayType::CREDIT_CARD;
$payment_type = PaymentType::parseCardType($payment_method_object['card']['brand']);