View Single Post
  #4  
Old 11-16-2012, 02:56 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Card type & last 4 passed to x-cart?

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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote