I have discovered that xpc is passing the last 4 + card type to the xcart admin
/admin/order.php?orderid=12345
Quote:
[+] Payment gateway log
--- Advanced info ---
Message:APPROVAL
txn_id:13
AVS:Address (Street) matches, ZIP does not
CVV:CVV2 Match
--- Advanced info ---
Reason: Approved: Payment is charged
(last 4 card numbers: 1234;
(card type: VISA);
|
Look at that!
It appears that this is passing to x-cart via
/modules/XPayments_Connector/xpc_func.php
in var, $advinfo
but it looks like a compound string -- can't see where $advinfo is getting Card Type or "last 4" from..
Ah...
in the database:
table: xcart_order_extras
khash: advinfo
value: B-45ae5aca2b7d (and about 450 characters follow)...
Anyone have any idea how we can extract the data from $advinfo and turn it into 2 vars: $last4 and $cardtype, and these 2 vars are avail on order_info pages and emails.
This SHOULD BE a stock out of the box feature of x-cart.
We know that x-payments is sending the info (encrypted) via xpc. Please, finish this -- it's a feature of EVERY OTHER payment terminal made, internet or physical.