X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   X-Payments issues & questions (https://forum.x-cart.com/forumdisplay.php?f=50)
-   -   How can I access X-Payments transaction data? (https://forum.x-cart.com/showthread.php?t=73806)

Joel Erickson 04-04-2016 03:22 PM

How can I access X-Payments transaction data?
 
I am using X-Payments for card transactions, and can see the card transaction data (brand, partially-masked number, gateway transaction time and ID) by viewing the order details in the admin. How do I access this information via code? I've tried looking through the \CDev\XPaymentsConnector module code, but haven't been able to figure it out yet.

seyfin 04-11-2016 12:21 AM

Re: How can I access X-Payments transaction data?
 
You can check the code of the X-Payments Connector module to find out how the X-Payments transaction data can accessed via code of your custom module.

ambal 04-12-2016 01:10 AM

Re: How can I access X-Payments transaction data?
 
Hi Joel,

Probably you need to use X-Payments API to get transaction data from X-Payments for your custom code - https://www.x-payments.com/help/X-Payments:API

Joel Erickson 04-15-2016 11:01 AM

Re: How can I access X-Payments transaction data?
 
Thanks for the suggestions. The quickest solution I found was to lift lines 107-120 from getXpcTransactionsAddInfo() in
Code:

/classes/XLite/Module/CDev/XPaymentsConnector/View/PopupAddInfo.php

By directly providing the xpc_txnid on line 109 I got the needed info. :-)


All times are GMT -8. The time now is 06:54 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.