close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Authentication for PayPal Express Checkout

Thread began 7/09/2012 7:10 pm by info13749 | Last modified 7/10/2012 9:31 pm by info13749 | 1025 views | 3 replies |

info13749

Authentication for PayPal Express Checkout

I'm using the express checkout button in a number of places so I've placed the code in an include.

When adding the Express checkout button to an eCart page, the update cart button triggered the Authentication so I've changed the code to

if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST["PayPalXpr_x"]))

This works fine, the only problem is that it gets overwritten if I make a change with the wizard.

Is there a better way to trap the pressing of the the pp express button

Cheers
Norman

Sign in to reply to this post

Jason ByrnesWebAssist

in the Authentication for PayPal Express Checkout server behavior, select the Button PayPalXpr pressed trigger.

this will write the trigger code as:
if (isset($_POST["PayPalXpr_x"])) {

which wont get overwritten


it's not needed to check for both the request method and the button being set, the only way the button will be set is if the request method is POST.

Sign in to reply to this post

info13749

Thanks Jason

cheers

Sign in to reply to this post

info13749

Hi Jason,

The server behaviour vanishes if I use your code, I've just placed the code between

<?php if (isset($_POST["PayPalXpr_x"])) {?> code is between here <?php }>

Which works fine


Cheers

Sign in to reply to this post

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...