Jump to content



AngusD

Member Since 24 Jan 2014
OFFLINE Last Active Yesterday, 19:28
-----

Topics I've Started

PayPal shows blank page

20 April 2017 - 18:48

Hello,

 

currently, PayPal shows a blank page when I click the "Confirm Order"-Button.

 

We're still using v4.039 of the App. Were there major changes in the current version of the App that would cause this sort of behaviour at PayPal?

Did anyone encounter a similar/the same problem in the past and knows how to fix this?

 

Thank you.

 

AD


PayPal App missing invoice parameter

22 August 2016 - 09:29

Hi,

 

in the last couple of days, we had the issue that the PayPal App (IPN) couldn't finalize an order, because it was missing in the database. This shouldn't happen, or this should only happen when a customer returns to the checkout payment-page.

 

I checked the PayPal log and found that the invoice parameter was missing from those orders. I don't know how this could have happened. I assume, the PayPal App couldn't insert the order into the database and continued without it. When the customer came back from PayPal, he was transfered to the checkout payment-page; maybe with an error-message he couldn't understand correctly, and the order was removed from the database.

 

Why the App couldn't set up the order, I don't know and I'm not sure how to find out if this was the case.

 

After the first time this happened, I put the App in Sandbox mode and tested the checkout. Everything worked as it should. Afterwards we had orders that were finalized correctly, until it happened again.

 

I'm not sure how to deal with it. I've added a check to the PayPal payment module, if there's an order_id present for the current order, but I'm not sure if this is the right thing to do:

$insert_id = NULL;
$insert_id = tep_db_insert_id();

if(empty($insert_id)){ // The insert_id (=order_id) is missing. Why is the order_id missing? Get back to the payment page and try again.
  tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_ORDER_MISMATCH), 'SSL'));
  exit;
}

Any advice?

 

AD