close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Credit Card payments

Thread began 12/07/2018 4:18 am by NWak04030229 | Last modified 12/16/2018 12:38 pm by Ray Borduin | 935 views | 9 replies |

NWak04030229

Credit Card payments

My cart will accept all PayPal payments but if someone goes to the PayPal checkout and enters their own card details because they don't have a PayPal account then the page redirects to a page on my site saying the cart is empty and they are unable to complete the transaction

Sign in to reply to this post

Ray BorduinWebAssist

It should work the same either way. Most likely the issue is the return redirect using www. when your site doesn't or vice versa, not an issue with the type of payment.

The best solution is probably to either force www. or force not www. using an htaccess rule.

#Force www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]



#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
Sign in to reply to this post
Did this help? Tips are appreciated...

NWak04030229

Thanks for that Ray. Where do I find this code to change it?

Sign in to reply to this post

Ray BorduinWebAssist

You create a file named .htaccess and place it in the root of your site.

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

NWak04030229

have tried this and now getting this page coming up when I try and purchase something (see attached)

Sign in to reply to this post

Ray BorduinWebAssist

Why is it going to localhost? are you testing it locally? I'll need more information to help you debug this. Can I get a URL and FTP access to a page where I can see the problem?

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

NWak04030229

see private message

Sign in to reply to this post

Ray BorduinWebAssist

On your confirm.php page lines 89-93 you have:

php:
$WA_PP_ECO_Set_params[0][$nextIndex] = "ReturnURL";

  $WA_PP_ECO_Set_params[1][$nextIndex] = "http://localhost/pp_confirm.php";
  $nextIndex = count($WA_PP_ECO_Set_params[0]);
  $WA_PP_ECO_Set_params[0][$nextIndex] = "CancelURL";
  $WA_PP_ECO_Set_params[1][$nextIndex] = "http://localhost/cart.php?ppcancel=1";



It looks like you have it set up to use your localhost. That has to be updated to use your live site like:

php:
$WA_PP_ECO_Set_params[0][$nextIndex] = "ReturnURL";

  $WA_PP_ECO_Set_params[1][$nextIndex] = "http://www.usedmagic.co.uk/pp_confirm.php";
  $nextIndex = count($WA_PP_ECO_Set_params[0]);
  $WA_PP_ECO_Set_params[0][$nextIndex] = "CancelURL";
  $WA_PP_ECO_Set_params[1][$nextIndex] = "http://www.usedmagic.co.uk/cart.php?ppcancel=1";
Sign in to reply to this post
Did this help? Tips are appreciated...

NWak04030229

Thanks for that - have changed it and uploaded - will try out later. One last thing: When opening up the confirm.php page I get the attached message. Can you tell me what that is about?

Sign in to reply to this post

Ray BorduinWebAssist

I just updated eCart with a fix that should address this issue. Please reinstall the extension and you shouldn't get this error anymore.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...