close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal express transaction is checking for country on pp_confirm?

Thread began 10/26/2009 3:25 pm by david353947 | Last modified 10/28/2009 4:38 pm by Jason Byrnes | 1396 views | 5 replies |

david353947

PayPal express transaction is checking for country on pp_confirm?

I have an issue where when the user select PayPal Express, they are getting an error when they try to confirm their order on pp_confirm.php and the error is that the country is not filled in...error follows...

Message: 'shippingCountry' is undefined
Line: 267
Char: 1
Code: 0
URI: checkout.js

Currently, this is preventing any PayPal Express sales on out website.

Sign in to reply to this post

Jason ByrnesWebAssist

This is not a script created by eCart:
checkout.js


eCart does not rely on this script. if you are using eCart for processing transactions, this script is not necessary.

Sign in to reply to this post

david353947

PayPal express transaction is checking for country on pp_confirm?

You're right...I had a guy create a couple scripts for checkout field validation and he added the .js script includes in the template by mistake by editing the file directly within the template region and all the pages were updated with that code when I opened it in DW. What I'm getting now is ...

Transaction Not Completed
We're sorry
Your PayPal transaction could not be completed.


10415 A successful transaction has already been completed for this token.

...I get this when I try to put through another sale through PayPal express...any way to reset the token? What if the customer wants to buy something else...do they have to leave and come back or can they institute another sale directly?

Sign in to reply to this post

Jason ByrnesWebAssist

Add this code after the </html> tag on the checkout success page:

php:
<?php

// Initialize the session.
// If you are using session_name("something"), don't forget it now!
@session_start();

// Unset all of the session variables.
$_SESSION = array();

// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (isset($_COOKIE[session_name()])) {
    @
setcookie(session_name(), ''time()-42000'/');
}

// Finally, destroy the session.
session_destroy();
?>
Sign in to reply to this post

david353947

PayPal express transaction is checking for country on pp_confirm

I added the code...weird part is that the sale is going through on the paypal side but I'm not getting the checkout_success page to show up and I do get the same message cause it never gets to that code above you told me to put in...also I'm not getting the order confirmation email as the customer...I do get the order confirmation email to the CC: email address I put in the universal email tool.

Sign in to reply to this post

Jason ByrnesWebAssist

It's a duplicate transaction because the session is not being cleared.

To clear the session, you need to close your browser completely before testing.

In the future, you will not need to close the browser completely however since the code on the success page will destroy the session so new one will get created.

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