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.
|
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.
|
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 |
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:21 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.