HomeHome Product Discus... Product Discus...SmithCartSmithCartHelp - getting PayPal Standard to return after purchaseHelp - getting PayPal Standard to return after purchase
Previous
 
Next
New Post
9/27/2011 3:20 PM
 

Hi all,

DNN 6.0.0. SC 4.58 (using Australian Dollars).

I'm having trouble with PayPal Standard and was hoping anyone had some pointers.

At present, when someone pays with PayPal, they are not returned to the cart from the PayPal screen, and hence we don't receive a confirmation email and the payment status remains false. We do still receive the payment successfully, and get an email from PayPal, but not the cart because the user isn't returned to our site.

I've put through a payment myself to test, and PayPal neither redirects back to the cart automatically or manually when you click on the link "Return To 'My Store' ". When I click the return-to-store link in PayPal, nothing happens.

My BuyNow module URL is http://www.mystore.com.au/Online-Store.aspx

In my cart settings, the PayPal merchant email is correct, and the success redirect URL is http://www.mystore.com.au/Online-Store/Thank-You.aspx.

In PayPal, I've set up the profile according to the Smith Cart user manual, Auto-Return is ON and the return URL is http://www.mystore.com.au/Online-Store.aspx (the buy-now module page).

Any ideas what might be wrong? Thanks very much for any pointers...

 
New Post
10/1/2011 8:03 PM
 

More info, when in IE I can see the "error on the page". Does this mean anything (below)? It happen with two different sites, clean install with details above.

Webpage error details

 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; chromeframe/14.0.835.186; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; BRI/2)
Timestamp: Sun, 2 Oct 2011 02:58:27 UTC
 
 
Message: Invalid argument.
Line: 1
Char: 1
Code: 0
URI: https://www.paypal.com/au/cgi-bin/merchantpaymentweb?dispatch=50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b61f737ba21b081981f0ec5c29429da1e3ab6e3235b433a67
 
 
-------------------
 
And here is the logging in the event viewer:
 
I have highlighted a possible 2 problems in bold, unless I'm mistaken... the URL looks messed up.
 
Please reply ASAP, thanks:
 
 
PayPal Post URL: : https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&upload=1&rm=2&business=sales%40myshop.com.au&email=johnsmith%40gmail.com¤cy_code=AUD&amount=20.00&image_url=http%3a%2f%2farchive.myshop.com.au%2fmylogo.jpg&item_name=Cleaning+tool&return=https%3a%2f%2fwww.myshop.com.au%3a443https%3a%2f%2fwww.myshop.com.au%2fonline-store%2fctl%2fconfirm%2fmid%2f422%3fPayPal%3dSuccess&cancel_return=https%3a%2f%2fwww.mystore.com.au%3a443https%3a%2f%2fwww.mystore.com.au%2fonline-store%2fctl%2fconfirm%2fmid%2f422%3fPayPal%3dCancel&first_name=Daniel&last_name=Taft&address1=14+Mystreet+Road&city=Melbourne&state=VIC&zip=3163&country=AU

 

 
New Post
10/3/2011 1:47 PM
 

Hi Daniel,

All the percent signs in the url that you see in the DNN event viewer for the paypal return url are just the url encoding which is required when sending the url to the payment gateway so there are no issues with that.  We did however find a couple issues with the Paypal standard integration that may fix the issue you reported.  The following items were fixed:

  • Amount field - There was an issue with amount formatting for PayPal Standard payment request. It has to always use point decimal separator no matter the currency. The bug only applies if you have configured your store for a currency that doesnt use decimal places (i.e. EURO uses commma as decimal seperator).
  • Return URL - The cart was appending a ":443" after the domain name when populating the return url that was sent to Paypal which was causing an issue returning the user back to your site after payment was completed at Paypal.  This was only an issue if your iis was not configured to allow the :443 after the domain name in the URL

The 2 bug fixes will be available in the next cart release v4.64 on 10/15/11.

Thanks,

 


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
10/3/2011 2:56 PM
 

Thanks Scott,

 

I'm aware of the URL ncoding with percent signs.

 

In addition to the :443 suffix, what about how both return URLs are repeated twice each time - before and after the 443? Is that correct?

 

Thanks,

Daniel.

 

 

 
New Post
10/3/2011 4:36 PM
 
There are 2 urls sent to paypal, the "SuccessUrl" and "CancelUrl" so it looks correct,


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
10/3/2011 5:22 PM
 
Scott Kelly wrote:
There are 2 urls sent to paypal, the "SuccessUrl" and "CancelUrl" so it looks correct,
 

Yes but if you look carefully...

The success URL has two URLs concattenated in it.

And the CancelURL also has two URLs concattenated in it.

Is that correct?

 

 

 
New Post
10/3/2011 5:34 PM
 
The fix I described in the above thread for the return url will fix this issue, Thanks for reporting it!


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartHelp - getting PayPal Standard to return after purchaseHelp - getting PayPal Standard to return after purchase