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)
-   -   xpayment Order processing error (https://forum.x-cart.com/showthread.php?t=64732)

spherman 08-31-2012 07:58 AM

xpayment Order processing error
 
I congigured xpayment as the payment method. When I submit the order it does not give me the oportunity to add credit card info. Instead it give me the following error:


Order processing error
Order declined.
Review your data or contact the store administrator.


Reason: Internal error

Anyone have any thoughts?

Scott

spherman 09-03-2012 01:44 PM

Re: xpayment Order processing error
 
Here is more information from the logs.

<?php die(); ?>
[03-Sep-2012 17:42:09] (shop: 03-Sep-2012 17:42:09) xpay_connector message:
X-Payments error (code: 504): Specified currency "RSD" is not allowed for payment configuration "2"
Request URI: /xcart/payment/payment_cc.php
Backtrace:
/www/clients/natureslawn.com/xcart/modules/XPayments_Connector/xpc_func.php:1847
/www/clients/natureslawn.com/xcart/modules/XPayments_Connector/xpc_func.php:1813
/www/clients/natureslawn.com/xcart/modules/XPayments_Connector/xpc_func.php:1580
/www/clients/natureslawn.com/xcart/modules/XPayments_Connector/xpc_func.php:445
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:361
/www/clients/natureslawn.com/xcart/payment/payment_cc.php:427

I ran through the setup again in xpayments and made sure that I selected the US currency and it still gave me this error. How do I fix this?

Scott

joss 09-03-2012 04:07 PM

Re: xpayment Order processing error
 
Make sure, that the correct currency is set both in the X-Payments Connector module settings in X-Cart, and in the X-Payments settings for this payment configuration.

spherman 09-04-2012 12:19 PM

Re: xpayment Order processing error
 
In the Module config it only has the option for "Serbian Dinar". How do I change it?

Scott

joss 09-04-2012 07:47 PM

Re: xpayment Order processing error
 
Actually, that setting should list all the currencies in your store. As a workaround you could modify the <xcart-dir>/modules/XPayments_Connector/xpc_func.php file as follows:


- Find this function:

-------------------
function xpc_get_currency($ref_id)
{
global $config;

return $config['XPayments_Connector']['xpc_currency'];
}
-------------------

- And modify its code so it looks like this:

-------------------
function xpc_get_currency($ref_id)
{
return 'USD';
}
-------------------

spherman 09-05-2012 12:14 PM

Re: xpayment Order processing error
 
It worked with a couple test orders, but I got a complaint of an order not going throught.

This is from the order data: What does it mean? Is it related to xpayments? I'll post the var/log entry in a couple parts becase of the length limitation of your forum.

--- Advanced info ---

Message:Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
txn_id:13
AVS:
CVV:
--- Advanced info ---
Reason: Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)

_____________________________


______________

spherman 09-05-2012 12:15 PM

Re: xpayment Order processing error
 
Here is the var/log entry part 1 of 2:


<?php die(); ?>
[05-Sep-2012 10:48:52] (shop: 05-Sep-2012 10:48:51) PAYMENTS message:
Payment processing failure.
Login: spherman
IP: 108.17.27.239
----
Payment method: Credit Card (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => e4de607a6e951567c32025d7177cc538
[code] => 2
[billmes] => Cancelled by customer
)
original_bill_output = Array
(
[sessid] => e4de607a6e951567c32025d7177cc538
[code] => 2
[billmes] => Cancelled by customer
)
_GET = Array
(
[target] => main
[token] => 9815a6237b78b680be686bccf8b69f94
[action] => cancel
[refId] => 35185
[txnId] => 877701a0fd31a9000dca1db82fa78db3
)
_POST = Array
(
)
Request URI: /xcart/payment/cc_xpc.php?target=main&token=9815a6237b78b680be686 bccf8b69f94&action=cancel&refId=35185&txnId=877701 a0fd31a9000dca1db82fa78db3
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:178
-------------------------------------------------
[05-Sep-2012 13:07:22] (shop: 05-Sep-2012 13:07:22) PAYMENTS message:
Payment processing failure.
Login: wookie42
IP: 71.197.24.149
----
Payment method: Credit Card (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => 1e29f5831f02bdeec95db8f7802dce04
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
original_bill_output = Array
(
[sessid] => 1e29f5831f02bdeec95db8f7802dce04
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
_GET = Array
(
)
_POST = Array
(
[action] => return
[refId] => 35188
[txnId] => 495a6e25a78567e99ba0889371233643
[last_4_cc_num] => 5075
[card_type] => MC
)
Request URI: /xcart/payment/cc_xpc.php
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:144

spherman 09-05-2012 12:17 PM

Re: xpayment Order processing error
 
Here is the second part of the var/log entry: It looks like there will actually be 3 parts.

-------------------------------------------------
[05-Sep-2012 13:08:38] (shop: 05-Sep-2012 13:08:37) PAYMENTS message:
Payment processing failure.
Login: wookie42
IP: 71.197.24.149
----
Payment method: Credit Card (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => 1e29f5831f02bdeec95db8f7802dce04
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
original_bill_output = Array
(
[sessid] => 1e29f5831f02bdeec95db8f7802dce04
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
_GET = Array
(
)
_POST = Array
(
[action] => return
[refId] => 35189
[txnId] => a2abbc2b24730c0ad01da415f36c5209
[last_4_cc_num] => 5501
[card_type] => VISA
)
Request URI: /xcart/payment/cc_xpc.php
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:144
-------------------------------------------------
[05-Sep-2012 14:00:03] (shop: 05-Sep-2012 14:00:03) PAYMENTS message:
Payment processing failure.
Login:
IP: 12.239.7.51
----
Payment method: Credit Card (on next page) (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => c21748f4f29cba238ae230229da34cae
[code] => 2
[billmes] => Cancelled by customer
)
original_bill_output = Array
(
[sessid] => c21748f4f29cba238ae230229da34cae
[code] => 2
[billmes] => Cancelled by customer
)
_GET = Array
(
[target] => main
[token] => 9896fcec9542946cc322f3c57cd27fe7
[action] => cancel
[refId] => 35192
[txnId] => 903cc6462f5fdb8e110814febb4a084d
)
_POST = Array
(
)
Request URI: /xcart/payment/cc_xpc.php?target=main&token=9896fcec9542946cc322f 3c57cd27fe7&action=cancel&refId=35192&txnId=903cc6 462f5fdb8e110814febb4a084d
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:178
-------------------------------------------------
[05-Sep-2012 14:01:46] (shop: 05-Sep-2012 14:01:46) PAYMENTS message:
Payment processing failure.
Login:
IP: 12.239.7.51
----
Payment method: Credit Card (on next page) (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => c21748f4f29cba238ae230229da34cae
[code] => 2
[billmes] => Cancelled by customer
)
original_bill_output = Array
(
[sessid] => c21748f4f29cba238ae230229da34cae
[code] => 2
[billmes] => Cancelled by customer
)
_GET = Array
(
[target] => main
[token] => 1e1d25b1cc4d8e312eef2263e9cb32d9
[action] => cancel
[refId] => 35194
[txnId] => b13fc68acf0372d7a50b3140b902cedd
)
_POST = Array
(
)
Request URI: /xcart/payment/cc_xpc.php?target=main&token=1e1d25b1cc4d8e312eef2 263e9cb32d9&action=cancel&refId=35194&txnId=b13fc6 8acf0372d7a50b3140b902cedd
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:178
-------------------------------------------------
[05-Sep-2012 14:09:38] (shop: 05-Sep-2012 14:09:37) PAYMENTS message:
Payment processing failure.
Login:
IP: 75.81.197.249
----
Payment method: Credit Card (on next page) (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => b05466f789371f4477b59643a012830a
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
original_bill_output = Array
(
[sessid] => b05466f789371f4477b59643a012830a
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
_GET = Array
(
)
_POST = Array
(
[action] => return
[refId] => 35196
[txnId] => bc7b84941eac11aeaee854acfa12edeb
[last_4_cc_num] => 1330
[card_type] => VISA
)
Request URI: /xcart/payment/cc_xpc.php
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:144
-------------------------------------------------
[05-Sep-2012 14:13:33] (shop: 05-Sep-2012 14:13:33) PAYMENTS message:
Payment processing failure.
Login:
IP: 75.81.197.249
----
Payment method: Credit Card (on next page) (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => b05466f789371f4477b59643a012830a
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
original_bill_output = Array
(
[sessid] => b05466f789371f4477b59643a012830a
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
_GET = Array
(
)
_POST = Array
(
[action] => return
[refId] => 35197
[txnId] => c7068b94d0b7a38b026a20262c1effa0
[last_4_cc_num] => 1330
[card_type] => VISA
)
Request URI: /xcart/payment/cc_xpc.php
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:144
-------------------------------------------------
[05-Sep-2012 14:41:23] (shop: 05-Sep-2012 14:41:23) PAYMENTS message:
Payment processing failure.
Login:
IP: 12.239.7.51
----
Payment method: Credit Card (on next page) (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => c21748f4f29cba238ae230229da34cae
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
original_bill_output = Array
(
[sessid] => c21748f4f29cba238ae230229da34cae
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
_GET = Array
(
)
_POST = Array
(
[action] => return
[refId] => 35199
[txnId] => 4c74842151e6c8fefcf4aa8dcdf86c28
[last_4_cc_num] => 1330
[card_type] => VISA
)
Request URI: /xcart/payment/cc_xpc.php
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:144

spherman 09-05-2012 12:17 PM

Re: xpayment Order processing error
 
Here is the third and final part of the var/log entry.


-------------------------------------------------
[05-Sep-2012 15:44:08] (shop: 05-Sep-2012 15:44:07) PAYMENTS message:
Payment processing failure.
Login: wingmmark@hotmail.com
IP: 98.232.177.49
----
Payment method: Credit Card (on next page) (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => e1b892e51860013392fcc0ddde6f5704
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
original_bill_output = Array
(
[sessid] => e1b892e51860013392fcc0ddde6f5704
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
_GET = Array
(
)
_POST = Array
(
[action] => return
[refId] => 35200
[txnId] => 13d7f3a9ee6fabebc7504f0d8dedb6a1
[last_4_cc_num] => 5021
[card_type] => VISA
)
Request URI: /xcart/payment/cc_xpc.php
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:144
-------------------------------------------------
[05-Sep-2012 15:52:22] (shop: 05-Sep-2012 15:52:22) PAYMENTS message:
Payment processing failure.
Login: wingmmark@hotmail.com
IP: 12.239.7.51
----
Payment method: Credit Card (on next page) (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => 4c8722d34ed12822ccef9c8cc5724805
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
original_bill_output = Array
(
[sessid] => 4c8722d34ed12822ccef9c8cc5724805
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
_GET = Array
(
)
_POST = Array
(
[action] => return
[refId] => 35201
[txnId] => 2a62856c0b71e7ac40f72e54813acc98
[last_4_cc_num] => 5021
[card_type] => VISA
)
Request URI: /xcart/payment/cc_xpc.php
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:144
-------------------------------------------------
[05-Sep-2012 15:55:30] (shop: 05-Sep-2012 15:55:30) PAYMENTS message:
Payment processing failure.
Login: wingmmark@hotmail.com
IP: 12.239.7.51
----
Payment method: Credit Card (on next page) (X-Payments: NL Pay Pal)
bill_output = Array
(
[sessid] => 4c8722d34ed12822ccef9c8cc5724805
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
original_bill_output = Array
(
[sessid] => 4c8722d34ed12822ccef9c8cc5724805
[code] => 2
[billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
)
_GET = Array
(
)
_POST = Array
(
[action] => return
[refId] => 35202
[txnId] => 102b0a0d36e22940840b68995d7dd8aa
[last_4_cc_num] => 5021
[card_type] => VISA
)
Request URI: /xcart/payment/cc_xpc.php
Backtrace:
/www/clients/natureslawn.com/xcart/payment/payment_ccmid.php:457
/www/clients/natureslawn.com/xcart/payment/payment_ccend.php:52
/www/clients/natureslawn.com/xcart/payment/cc_xpc.php:144

joss 09-05-2012 12:31 PM

Re: xpayment Order processing error
 
Thank you for the logs provided. This error seems to be a known issue in X-Cart and PayPal. Please contact our support team through the HelpDesk:

https://secure.qtmsoft.com/customer.php?area=center&target=customer_info#tab-customer_info


All times are GMT -8. The time now is 07:35 PM.

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