Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How can I access X-Payments transaction data?
 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 04-04-2016, 03:22 PM
 
Joel Erickson Joel Erickson is offline
 

Newbie
  
Join Date: Mar 2016
Posts: 5
 

Default 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.
__________________
X-Cart Business 5.2.13
Reply With Quote
  #2  
Old 04-11-2016, 12:21 AM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default 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.
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart
Reply With Quote
  #3  
Old 04-12-2016, 01:10 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,106
 

Default 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
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote
  #4  
Old 04-15-2016, 11:01 AM
 
Joel Erickson Joel Erickson is offline
 

Newbie
  
Join Date: Mar 2016
Posts: 5
 

Default 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.
__________________
X-Cart Business 5.2.13
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:59 PM.

   

 
X-Cart forums © 2001-2018