1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

Fixes for credit card meta data

This commit is contained in:
David Bomba 2021-04-16 12:05:14 +10:00
parent 2f7e91b46d
commit 5630193dfe

View File

@ -1833,7 +1833,7 @@ info("translated gateway_type = {$translated_gateway_type}");
$meta->exp_month = (string)$exp_month;
$meta->exp_year = (string)$exp_year;
$meta->brand = (string)$payment_method->payment_type->name;
$meta->last4 = (string)str_replace(',', '', ($payment_method->expiration));
$meta->last4 = (string)str_replace(',', '', ($payment_method->last4));
$meta->type = $payment_method->payment_type->gateway_type_id;
return $meta;