close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal Express Checkout submission issue

Thread began 3/06/2010 8:00 am by glenn140201 | Last modified 4/02/2010 1:20 pm by Jason Byrnes | 4046 views | 16 replies |

glenn140201

PayPal Express Checkout submission issue

Hi

My Paypal Express checkout (on checkout.php page) submits back to my Home Page / goes nowhere. Here is the submission form code:-

<form name="PayPal_ExpressCheckout_form" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<h3 class="eC_CheckoutFormHeader">Fast, Secure Checkout with PayPal </h3>
<div class="eC_CheckoutFormBody">
<p>
<input type="image" alt="PayPal Express Checkout" name="PayPal_ExpressCheckout_button" id="PayPal_ExpressCheckout_button" src="WA_eCart/PP_ECO_Scripts/btn_xpressCheckoutsm.gif" width="145" height="42"/>
</p>
<p>Save time. Checkout securely. Pay without sharing your financial information.</p>
</div>
</form>

I'm using server side includes and as I've had to edit the other checkout pages in this respect I'm guessing this is probably the issue.

Please advise for code edit/fix.

Regards

Glennyboy

Sign in to reply to this post

anonymous

Originally Said By: glenn140201
  Hi

My Paypal Express checkout (on checkout.php page) submits back to my Home Page / goes nowhere. Here is the submission form code:-

<form name="PayPal_ExpressCheckout_form" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<h3 class="eC_CheckoutFormHeader">Fast, Secure Checkout with PayPal </h3>
<div class="eC_CheckoutFormBody">
<p>
<input type="image" alt="PayPal Express Checkout" name="PayPal_ExpressCheckout_button" id="PayPal_ExpressCheckout_button" src="WA_eCart/PP_ECO_Scripts/btn_xpressCheckoutsm.gif" width="145" height="42"/>
</p>
<p>Save time. Checkout securely. Pay without sharing your financial information.</p>
</div>
</form>

I'm using server side includes and as I've had to edit the other checkout pages in this respect I'm guessing this is probably the issue.

Please advise for code edit/fix.

Regards

Glennyboy  




Hi Glenn, could you post a link where I could view the page online? And can you post the actual page code in the forum here? I will take a look and see what I can dig up.

Regards,

Brian

Sign in to reply to this post

glenn140201

The Issue

Hi

For security I can't do that I'm afraid as that would show my API and Payment configurations.

The configuration is standard WA eCart and I have not amended the script. However as I am using SSi's the page checkout.php becomes index.php?mod=checkout.php and I believe herein lies the issue. The page is trying to submit to itself for the Paypal via:-

<form name="PayPal_ExpressCheckout_form" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">

But this can't be the case as the file checkout.php is an include.

I think I need direct WA Support on this, but any other insights are appreciated.

Regards

Glennyboy

Sign in to reply to this post

asksales313066

Hey glenboy, refer to these theads that may shed light on your problem. showthread.php?t=9860
they where the same as mine I think. It may help

Tony

Sign in to reply to this post

glenn140201

sorry I'm not sure how that helps - I have all my pages set up as per the extension, but there is a clash between the form submission on self and using SSIs...

Sign in to reply to this post

asksales313066

mine was done based on their extensions also. Your cart is empty and causing the redirect page behaviour to activate. Have you set up your checkout.php page to collect the Ecart form elements from the cart.php page?

Sign in to reply to this post

glenn140201

Hi
Nope I ran a full test with items in the Cart. The Paypal Express checkout option fires back to my home page - again I'm sure this is because I'm incorporating the checkout.php as an include. So it goes back to my home page because the file index.php includes the file checkout.php / index.php?mod=checkout.

How do you get WA to answer here? I really appreciate all your suggestions, but it's not a good form of support. A WA representative could probably answer this in one post.

Cheers

Glennyboy

Sign in to reply to this post

asksales313066

yep, sounds like you need them to take a look at your files. They usually answer soon enough. Good luck with the problem, I know it can be frustating.

Tony

Sign in to reply to this post

Jason ByrnesWebAssist

where you are passing a querystring variable to tell the server what page to load, you will need to modify the forms action to also pass any querystring variables that are passed in:



<form name="PayPal_ExpressCheckout_form" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>" method="post">

Sign in to reply to this post

glenn140201

So I'm passing from my checkout page to Paypal Express Checkout.

My checkout page is "index.php?mod=checkout"
confirm page is similarly "index.php?mod=confirm"
etc

How do I use your code with the above query string format?

Sign in to reply to this post
loading

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