close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

API request / response and correlation ID (debug ID) for PayPal

Thread began 9/19/2017 6:46 am by TroyD | Last modified 9/19/2017 10:08 am by Ray Borduin | 2902 views | 3 replies |

TroyD

API request / response and correlation ID (debug ID) for PayPal

I know I can dump the response from PayPal on the success.php page but I was wondering if there was any creative way to do this without exposing all those details on a live shopping cart.

I'm working with PayPal support on an issue and they keep requesting that I send them the API request / response and correlation ID.

I usually would add var_dump($_SESSION); to the success page, run a test purchase and copy the output. However, since this is a live setup, I worry that someone else will checkout before I remove the var_dump($_SESSION); . This output includes a lot of information including the password for the PayPal Pro account. I was wondering if I could write to a text file or something that only I would see.

Also, how do I find the correlation ID? I read about it in the docs at PayPal but I don't know where to find it because it's not included in the response.

Thanks,
TroyD

Sign in to reply to this post

Ray BorduinWebAssist

Just create a second page that nobody would ever go to like pp_debug.php. And add the code there:

<?php
session_start();
var_dump($_SESSION);
?>

Then you can manually type in that url to go to the page and nobody else would see it. I think the CorrelationID is included with the full response, so you should be able to find it on the page.

Sign in to reply to this post
Did this help? Tips are appreciated...

TroyD

Thanks Ray. I thought of that but I guess I was thinking that since there are so many sessions that are cleared on that page, it would all be gone by the time I viewed the hidden page.

Can I safely disable this while I perform the test?

if (isset($_REQUEST['SECURETOKEN'])) {
unset($_SESSION['wa_' . $_REQUEST['SECURETOKEN'] . "_Items"]);
unset($_SESSION['wa_' . $_REQUEST['SECURETOKEN'] . "_shipping"]);
unset($_SESSION['wa_' . $_REQUEST['SECURETOKEN'] . "_tax"]);
unset($_SESSION['wa_' . $_REQUEST['SECURETOKEN'] . "_discounts"]);
unset($_SESSION['wa_' . $_REQUEST['SECURETOKEN'] . "_charges"]);
}



I believe I need this to included.

Thanks
TroyD

Sign in to reply to this post

Ray BorduinWebAssist

Yes you can disable that just in case, but you probably don't need to.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...