Wednesday, 18 September 2013

PayPal's tracking id

PayPal's tracking id

Sometimes PayPal breaks, and it doesn't return a tracking_id. At the same
time, it completes the payment on it's own servers. This is a problem for
me, because even thought the payment was successful, my server ends up
with a blank tracking_id column in the database table, which causes me
lots of issues
If this were to happen again, will the following if statement be enough to
capture such an event?
if( !isset($trackingId) || empty($trackingId) || $trackingId == null ||
$trackingId == "" ) {
// something is wrong
} else {
// continue as normal
}

No comments:

Post a Comment