Paypal problem (not pro), order failed

I’ve search in the forum but i’ve found only posts on paypal pro.



Even though my payments go through on paypal, customers are redirected to a page saying that order failed.

They receive a payment confirmation from paypal.

But then they also get one from my site saying that payment failed.



Any ideas? TKS

UP! :mrgreen:

Did you ever solve this - I assume so.



My system was ticking along nicely but then has just started saying payment failed when it has not AND in case it is related cs-cart is not sending emails out.



It appears to but nothing turns up.

I am getting payment processing declined and failed orders, but the payment is there in Paypal.



The customer is not getting the option to pay the order again even though this option is ticked in settings.



Customers then have to place the order again not realising their payment has been taken. Then I have to do a refund cos they’ve paid twice.



BarryH

Check to ensure your paypal certificate in /payments/paypal (something like this) has been updated. Those upgrading stores will miss it.

Interesting thing.

We have no problems receiving payments…(paypal standard)



Maybe paypal changed something again?

Hello Puntobeta,



I have the same issue, paypal looks like its doing its thing all great until you return back to the website you came from. Then you get a failed payment message even though you have taking there money :slight_smile:



cart ver 1.3.5 SP3



Thanks

Mike

Updated to sp3 and appeared at us too. (but not sure if is caused by sp3, may be paypal mistake)

Tested with sandbox with different currencies and the some issue .

We are in contact with Paypal, waiting for a solution!!!



BarryH

Any update on this issue as I got same problem as well.

Could this be problem with “fn_cart.php”:



Few days ago I got this fix from CS support:



Replace the following part of code in the “fn_cart.php” file located in the “core” directory of your CS-Cart installation.



```php foreach ($cart[‘shipping’] as $sh_id => $method) {

if (!empty($cart[‘stored_shipping’][$sh_id])) {

$piece = fn_format_price($cart[‘stored_shipping’][$sh_id] / count($method[‘rates’]));

foreach ($method[‘rates’] as $k => $v) { ```



with this one



```php foreach ($cart[‘shipping’] as $sh_id => $method) {

if (isset($cart[‘stored_shipping’][$sh_id])) {

$piece = fn_format_price($cart[‘stored_shipping’][$sh_id] / count($method[‘rates’]));

foreach ($method[‘rates’] as $k => $v) { ```



Also there is one bug with shipping when making backorder.

I also have the same issue.

Anyone know if this just affects SP3?



Paypal is my ONLY payment processor and thus I’ve had to take down my store entirely to avoid any further issues until this is resolved. Needless to say I’m not a happy camper right now.

Use paypal express checkout


[quote name=‘BluEyeGuy’]Anyone know if this just affects SP3?



Paypal is my ONLY payment processor and thus I’ve had to take down my store entirely to avoid any further issues until this is resolved. Needless to say I’m not a happy camper right now.[/QUOTE]

I tested this issue with sp2 and with sp3.



On sp2 no error only in sp3.



The mentioned bug fix does not work.

May be in fn_cart.php or in paypal.php.

I did not have time yet to look up where the mistake.



We are waiting for a working fix.

In payments/cc_processors/paypal.php locate this code



} elseif ($mode == 'return') {
$order_info = fn_get_order_info($order_id);
[COLOR="Red"]if ($order_info['status'] == 'O') [/COLOR]
$pp_response['order_status'] = 'F';
$pp_response["reason_text"] = fn_get_lang_var('text_transaction_declined');
include PAYMENT_FILES_DIR . 'payment_cc_complete.php';
}
if (!defined('ORDER_NOTIFICATION_SENT')) {
define('ORDER_NOTIFICATION_SENT', true);
}
fn_order_placement_routines($order_id, @$notify_user);
}







and the lines in red chande to this


if ($order_info['status'] == 'F')




The “Allow a customer to pay the order again in case the transaction was declined” will not work but the PayPal error will go off.



:slight_smile:

Hi all,



I am too getting a problem, Payments are received to paypal no problem, but the email and status says declined and contact store admin.



It was all working fine till a couple of days ago.



I know I havent changed anything!



Suggestions please.



U

There seems to be a problem with IPN when doing instant transfer payments. I’m watching the paypal boards for a fix. I did see this as a possible cause of the problem:



If you complete the [Billing Address Line 2] field, Paypal send the value of address_street variable as [Billing Address Line 1][CRLF][Billing Address Line 2] on the IPN request. This is the root cause for my INVALID responses.



eg: &address_street=[Billing Address Line 1]%0D%0A[Billing Address Line 2]

We’ve been having the same problem on SP2.



Sometimes customers will try to place the order 2-3 times in a row and they sit in “open” status. On Friday however a customer called in because his order hadn’t been shipped. I found out that we did receive payment in Paypal, but CS-Cart showed the order as declined.



This is frustrating because we run large sites and are losing out on sales.

I am still having issues. Anyone have a fix for this yet? Is it a Paypal issue or CS-Cart needing to fix something Paypal changed on their end?