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

Xpayments internal error

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 04-24-2012, 04:52 AM
  smithlarry's Avatar 
smithlarry smithlarry is offline
 

Advanced Member
  
Join Date: May 2005
Location: Blairs, VA USA
Posts: 31
 

Default Xpayments internal error

Just set up a test store V 4.4.5 and xpayments with USAEpay. When I put in a order I get the following.

1. Order failed, Internal xpayments error.
2. An email is sent to customer stating credit card has been charged but no invoice or oreder nfo.
3. Transaction approval is emailed to admin.
4. Charge is posted to USAEpay.
5. No invoice to admin and the Order marked as failed in xcart.

Here is the error log:

ERROR [2012-23-04 16:16:44]
User: unknown; IP:
Zone: VSNode
Code: ENUM_WRONG_VALUE (1532)
Data validation error, node "UMavsResultCode": Passed value is not allowed. Value - "Y", possible values - "('YYY','NYZ','YNA','NNN','YYX','NYW','XXW','XXU', 'XXR','XXS','XXE','XXG','YYG','GGG','YGG','')" (value: 'Y')

Affected systems: VSNode/Base/Node.php file (124:assert); VSNode/Enum.php file (102:assert); VSNode/Base/Array.php file (97:validate); VSNode/ArrayKeyString.php file (53:validate); Transport/ValidationSchema.php file (111:validate); Model/PaymentConf.php file (600:validate); Model/Payment.php file (1700:processPayment); Model/Payment.php file (1645:processInit); Controller/Payment/Main.php file (239:process); Controller/Payment/Main.php file (217:doPay); Core/Controller.php file (181:actionPay); Controller/Payment.php file (277:process); Core/Dispatcher.php file (148:process); Application.php file (156:dispatch); /home/brother2/public_html/xcart/xpayments/payment.php file (26:run)

I've set up everything by the book. Seems to me xpayments is not working properly.

Any help appreciated.

Larry
__________________
BrotherSmith
Xcart Version 4.5.4
Xpayments 1.0.5
Adapt Template
ECC intergration
Reply With Quote
  #2  
Old 04-25-2012, 02:23 AM
  ambal's Avatar 
ambal ambal is offline
 

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

Default Re: Xpayments internal error

Larry, please report this issue to helpdesk@qtmsoft.com Our engineer will take a look into it. If it is a bug in X-Payments, it will be fixed free of charge for you.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote
  #3  
Old 04-25-2012, 07:59 AM
 
rct rct is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 89
 

Default Re: Xpayments internal error

After I have installed the x-payment, I have renamed the install.php as per instructed. but when I tried to make a confirmation from the link sent to me via email.

Error: Access via insecure protocol is prohibited


From the error log :

ERROR [2012-25-04 10:44:05]
User: unknown; IP: XX.129.140.142
Zone: Core
Code: NONSECURE_PROTOCOL (237)
X-Payments is using a non-secure protocol

Affected systems: Core/Defender.php file (60:assert); Application.php file (133:check); /home/reallyco/public_html/xpayments/admin.php file (26:run)



And this is what I have in my config.ini.php

;<?php
;// vim: set ts=4 sw=4 sts=4 et:

;/**
; * Configuration settings - MySQL credentials, logging, etc.
; *
; * @category X-Payments
; * @package X-Payments
; * @subpackage Config
; * @author Creative Development LLC <info@cdev.ru>
; * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
; * @license http://www.qtmsoft.com/xpayments_eula.html X-Payments license agreement
; * @version SVN: $Id: config.ini.php 5022 2011-03-22 08:36:19Z joy $
; * @link http://www.qtmsoft.com/
; * @see ____file_see____
; * @since 1.0.0
; */

;// Throw the exception if someone try to include this file into PHP code
;throw new XPay_Core_Exception('CONFIG_FILE_INCLUDE', array('file' => __FILE__));
;?>

; ---------------------------------
; To avoid incorrect parsing of configuration data it is strongly recommended
; to enclose all passwords, paths and other data in double quotation marks.
; If the data itself contains double quotation marks or a backslash, put
; a backslash before them, like this: \" or \\
; ---------------------------------

[mysql]
; ---------------------------------
; MySQL credentials
;
; ---------------------------------

server="mydomain.com"
port=
unix_socket=
dbname= "XXX"
user= "XXX"
password="XXX"
[mail]
; ---------------------------------
; Mail notifications parameters
; 'from' value is a 'From:' email parameter
; 'host', 'port', 'user', 'password' values is used for SMTP email transfer
; 'auth' value is an SMTP authentication method : LOGIN , CRAM-MD5, DIGEST-MD5
; 'timeout' value is the connection timeout period in seconds.
;
; If you omit 'host' value then the 'mail()' PHP function will be used for email transfer.
;
; ---------------------------------

from="XXX"
host="XXX"
port="25"
user="XXX"
password="XXX"
auth=LOGIN
timeout=10

[location]
; ---------------------------------
; X-Payments web URL.
;
; It MUST use HTTPS protocol.
;
; It should be in the following form:
; web="'.com/xpayments/"
;
; ---------------------------------

web="www.mydomain.com/xpayments/"

[proxy]
; ---------------------------------
; Proxy parameter:
; * username:password@host:port
; * username:password@host
; * username@host
; * username@host:port
; * host:port
; * host
;
; ---------------------------------

proxy=
; The flag value defines whether to use (value 1) or not (value 0) a proxy
; server for callback queries to online stores.
use_for_callback=0

; The flag prohibits (value 1) or allows (value 0) checking the certificate
; when connecting to payment gateways or online stores via HTTPS.
stop_verify_connection=1

; A path to the SSL certificate or certificates, which is used for peer
; verification. If the path is specified, peer verification will
; automatically be enabled.
curl_cabundle_path=

[security]

; The number of days after which online stores encryption keys are considered
; expired.
cart_enc_keys_expire=180

; The flag allows (value 1) or prohibits (value 0) working with software via
; an insecure HTTP protocol.
allow_insecure_protocol=0

; If the value is 'Y' then Luhn check algorithm will not be applied to
; credit card numbers
turn_off_luhn_check=N

[debug]

; The flag allows (value 1) or prohibits (value 0) detailed logging of
; internal events, occurring in software, such as queries to payment
; gateways, their responses, etc.
detailed_logging=0

; The flag allows (value 1) or prohibits (value 0) showing detailed error
; messages in software. The messages will contain detailed information,
; which is usually written to log files only.
detailed_messages=0

; The CardinalCommerce integration test case code, which would be used in
; test mode.
cardinal_commerce_testcase=Test01

Please help? Thanks
__________________
JOHN - v.5.3.X biz, X-payment 3.X
Reply With Quote
  #4  
Old 04-25-2012, 08:07 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Xpayments internal error

You cannot use XPayments on http - it has to be https, so you need it to have SSL installed as well where XPayments is installed - for that domain. You can also change

allow_insecure_protocol=0

to

allow_insecure_protocol=1

to allow XPayments to work over http but this is something you should not do on production site
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
ambal (04-25-2012)
  #5  
Old 04-25-2012, 08:12 AM
 
rct rct is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 89
 

Default Re: Xpayments internal error

Quote:
Originally Posted by cflsystems
You cannot use XPayments on http - it has to be https, so you need it to have SSL installed as well where XPayments is installed - for that domain. You can also change

allow_insecure_protocol=0

to

allow_insecure_protocol=1

to allow XPayments to work over http but this is something you should not do on production site

Thanks for your reply.We have SSl installed but it is for the whole domain , not in any subdirectory, does it means this is the problem?
__________________
JOHN - v.5.3.X biz, X-payment 3.X
Reply With Quote
  #6  
Old 04-25-2012, 08:29 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Xpayments internal error

If the SSL is for the domain and XPayments is installed in a subdirectory of that domain the SSL applies to it as well. Make sure when you try to access it you put https:// in front of the url
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
ambal (04-26-2012), rct (04-25-2012)
  #7  
Old 04-26-2012, 12:20 AM
  ambal's Avatar 
ambal ambal is offline
 

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

Default Re: Xpayments internal error

@smithlarry
your case is a bug in X-Payments. I created a ticket in your HelpDesk account for our X-Payments engineer on your behalf. It will be free of charge for you since this is a bug.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
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 11:36 AM.

   

 
X-Cart forums © 2001-2020