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

Migrating site use the stand alone Express Checkout

Thread began 3/26/2020 3:11 pm by TroyD | Last modified 3/27/2020 8:22 pm by Ray Borduin | 50 views | 11 replies |

TroyD

Migrating site to use the stand alone Express Checkout

I am migrating a website from using the PayPal Advanced method over to use the stand alone Express Checkout.

It turns out I have a copy of that site where I first set it up using Express Checkout, but I need to update the files. I tried rerunning the checkout wizard within that site but it timed out because I have so much custom code in the eCart file.
What I did was create a new site from scratch and did a comparison to see what had changed.

Most of it is pretty obvious to me but I had some questions.

Within the webassist/ directory:

I would assume that most of the files in the newly generated site, would be the correct files to use. I know that credentials are specific to each site and so are the email templates and style sheets, but other than that, can I just copy the other files over as a whole? Including paymentoptions.js?

In the WA_eCart/ directory:

PP_ECO_.php. Both the newly generated file and the older file have the same version number “$WA_PP_ECO_VersionNumber = "63.0”” but are different. Use the newest one?

The pp_confirm.php file:

In the pp_confirm.php file, the “$PPVals =“ is different on the newly generated file. Which should I use?

New file…
$PPVals = isset($_SESSION["WASF_CheckoutWizard_Compact_Default"])?$_SESSION["WASF_CheckoutWizard_Compact_Default"]:array();

Or

Old file just has…
$PPVals = array();

I know the session would be named differently since it's based on the style used but should I include that ternary operator for the correct session?

Thanks,
TroyD

Sign in to reply to this post

Ray BorduinWebAssist

Use the new version of everything. The only custom file is the gateways.php file which has your usernames and passwords.

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

TroyD

Thanks Ray,

Lastly, for now.

On the confirm.php page, (both old and new), a WA Universal Email was generated to send the wa_receipt.php . Why is this in the confirm.php file and again on the pp_confirm.php file?
The one on confirm.php is triggered by $_POST["Payment_submit”], however I do not find a button by that name, so I assume it’s not even used. Is that correct?

Thanks,
TroyD

Sign in to reply to this post

Ray BorduinWebAssist

With express checkout the only one that is used is pp_confirm.php.

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

TroyD

Thanks Ray! I really appreciate the help.

TroyD

Sign in to reply to this post

TroyD

I noticed that with the stand alone Express Checkout, the user only fills in shipping information on the checkout page which is perfect since the shipping address is all we really need.

But, I also see that PayPal returns both shipping and billing address.

I need to make sure that the address entered on the site always remains in the database as they entered it. I don’t want the shipping address to be changed when PayPal returns to pp_confirm.php.
Is it possible to prevent them from changing the shipping address at PayPal?

Here’s what I am worried will happen. Someone will check out using their current shipping address then pay at PayPal using their Mom’s account or spouses account that still contains an old address or a different billing address.

If the email goes out to the shipping department and it shows the billing address in place of what was entered on the site, it could be a problem. Since this is different than how the Advanced and Pro pages work, I wanted to make sure.

Thanks,
Troy

Sign in to reply to this post

Ray BorduinWebAssist

You can pass a setting to prevent the shipping address from changing.

You just have to add this with the other parameters being passed:

$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "addressoverride";
$WA_PP_ECO_Set_params[1][$nextIndex] = "1";

If you can't spot where to add it, just attach your confirm.php page and I can give you a line number. You can add it right after the address or phone number.

That will prevent them from updating the address once passed to paypal.

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

TroyD

Thanks Ray,

It goes on the pp_confirm.php page and not the confirm.php page?

I see the params settings on the confirm.php page, such as ReturnURL and CancelURL.

Thanks,
Troy

Sign in to reply to this post

Ray BorduinWebAssist

This would be on the confirm.php page. Sorry I had put the wrong page.

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

TroyD

Perfect. Thanks Ray!

One more thing, if you don’t mind. I would like to record the email address of the account they used when paying at paypal.
With the Advanced checkout I always just capture the post returned from paypal. How would I do that with Express Checkout?

//this is what I used in advanced checkout, on the success page
if (!session_id()) session_start();
if ((((isset($_POST["EMAIL"])) ? $_POST["EMAIL"] : "") != "")) {
$_SESSION["PPAcountEmail"] = "".((isset($_POST["EMAIL"])) ? $_POST["EMAIL"] : "") ."";
}



Can I just use WA_PP_ECO_GetValue($WA_PP_ECO_GetResult, "Payer") for that address?

Thanks,
TroyD

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